pub struct ErrorWithResponsePieces<ErrorT, BodyT> {
pub error: ErrorT,
pub pieces: Option<ResponsePieces<BodyT>>,
}
Expand description
Error with optional ResponsePieces.
Fields§
§error: ErrorT
Error.
pieces: Option<ResponsePieces<BodyT>>
Pieces.
Implementations§
Source§impl<ErrorT, BodyT> ErrorWithResponsePieces<ErrorT, BodyT>
impl<ErrorT, BodyT> ErrorWithResponsePieces<ErrorT, BodyT>
Sourcepub fn new(error: ErrorT, pieces: Option<ResponsePieces<BodyT>>) -> Self
pub fn new(error: ErrorT, pieces: Option<ResponsePieces<BodyT>>) -> Self
Constructor.
Sourcepub fn new_from_body(
error: ErrorWithBodyPieces<ErrorT, BodyT>,
parts: Parts,
) -> Self
pub fn new_from_body( error: ErrorWithBodyPieces<ErrorT, BodyT>, parts: Parts, ) -> Self
Constructor.
Trait Implementations§
Source§impl<ErrorT, BodyT> Debug for ErrorWithResponsePieces<ErrorT, BodyT>where
ErrorT: Debug,
impl<ErrorT, BodyT> Debug for ErrorWithResponsePieces<ErrorT, BodyT>where
ErrorT: Debug,
Source§impl<ErrorT, BodyT> Display for ErrorWithResponsePieces<ErrorT, BodyT>where
ErrorT: Display,
impl<ErrorT, BodyT> Display for ErrorWithResponsePieces<ErrorT, BodyT>where
ErrorT: Display,
Source§impl<ErrorT, BodyT> Error for ErrorWithResponsePieces<ErrorT, BodyT>where
ErrorT: Error,
impl<ErrorT, BodyT> Error for ErrorWithResponsePieces<ErrorT, BodyT>where
ErrorT: Error,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<ErrorT, BodyT> !Freeze for ErrorWithResponsePieces<ErrorT, BodyT>
impl<ErrorT, BodyT> !RefUnwindSafe for ErrorWithResponsePieces<ErrorT, BodyT>
impl<ErrorT, BodyT> Send for ErrorWithResponsePieces<ErrorT, BodyT>
impl<ErrorT, BodyT> Sync for ErrorWithResponsePieces<ErrorT, BodyT>
impl<ErrorT, BodyT> Unpin for ErrorWithResponsePieces<ErrorT, BodyT>
impl<ErrorT, BodyT> !UnwindSafe for ErrorWithResponsePieces<ErrorT, BodyT>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more