pub fn map<M>(self, f: Box<dyn Fn(T) -> M>) -> ResponseOrError<M> {
        match self {
            Self::Error(e) => ResponseOrError::Error(e),
            Self::Response(r) => ResponseOrError::Response(r.map(f)),
        }
    }
/// Transform the inner value of a valid response. Will not transform an error
Transform the inner value of a valid response. Will not transform an error
Transform the inner value of a valid response . Will not transform an error
pub fn map<M>(self, f: Box<dyn Fn(T) -> M>) -> ResponseOrError<M> {
        match self {
            Self::Error(e) => ResponseOrError::Error(e),
            Self::Response(r) => ResponseOrError::Response(r.map(f)),
        }
    }
pub fn map < M > ( self , f : Box < dyn Fn ( T ) -> M > ) -> ResponseOrError < M > { match self { Self :: Error ( e ) => ResponseOrError :: Error ( e ) , Self :: Response ( r ) => ResponseOrError :: Response ( r . map ( f ) ) , } }
Transform the inner value of a valid response.
Transform the inner value of a valid response .
self
f
Box<dyn Fn(T) -> M>