pub struct ErrorWithBodyPieces<ErrorT, BodyT> {
pub error: ErrorT,
pub pieces: Option<BodyPieces<BodyT>>,
}
Expand description
Error with optional BodyPieces.
Fields§
§error: ErrorT
Error.
pieces: Option<BodyPieces<BodyT>>
Pieces.
Implementations§
Source§impl<ErrorT, BodyT> ErrorWithBodyPieces<ErrorT, BodyT>
impl<ErrorT, BodyT> ErrorWithBodyPieces<ErrorT, BodyT>
Sourcepub fn new(error: ErrorT, pieces: Option<BodyPieces<BodyT>>) -> Self
pub fn new(error: ErrorT, pieces: Option<BodyPieces<BodyT>>) -> Self
Constructor.
Trait Implementations§
Source§impl<ErrorT, BodyT> Debug for ErrorWithBodyPieces<ErrorT, BodyT>where
ErrorT: Debug,
impl<ErrorT, BodyT> Debug for ErrorWithBodyPieces<ErrorT, BodyT>where
ErrorT: Debug,
Source§impl<ErrorT, BodyT> Display for ErrorWithBodyPieces<ErrorT, BodyT>where
ErrorT: Display,
impl<ErrorT, BodyT> Display for ErrorWithBodyPieces<ErrorT, BodyT>where
ErrorT: Display,
Source§impl<ErrorT, BodyT> Error for ErrorWithBodyPieces<ErrorT, BodyT>where
ErrorT: Error,
impl<ErrorT, BodyT> Error for ErrorWithBodyPieces<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 ErrorWithBodyPieces<ErrorT, BodyT>
impl<ErrorT, BodyT> RefUnwindSafe for ErrorWithBodyPieces<ErrorT, BodyT>where
ErrorT: RefUnwindSafe,
BodyT: RefUnwindSafe,
impl<ErrorT, BodyT> Send for ErrorWithBodyPieces<ErrorT, BodyT>
impl<ErrorT, BodyT> Sync for ErrorWithBodyPieces<ErrorT, BodyT>
impl<ErrorT, BodyT> Unpin for ErrorWithBodyPieces<ErrorT, BodyT>
impl<ErrorT, BodyT> UnwindSafe for ErrorWithBodyPieces<ErrorT, BodyT>where
ErrorT: UnwindSafe,
BodyT: UnwindSafe,
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