pub struct LazyError<'a, E> {
pub field_name: Option<Cow<'a, str>>,
pub error: E,
/* private fields */
}
Expand description
An error for lazily written multipart requests, including the original error as well as the field which caused the error, if applicable.
Fields§
§field_name: Option<Cow<'a, str>>
The field that caused the error.
If None
, there was a problem opening the stream to write or finalizing the stream.
error: E
The inner error.
Trait Implementations§
Source§impl<'a, E: Error> Error for LazyError<'a, E>
impl<'a, E: Error> Error for LazyError<'a, E>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl<'a, E> Freeze for LazyError<'a, E>where
E: Freeze,
impl<'a, E> RefUnwindSafe for LazyError<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for LazyError<'a, E>where
E: Send,
impl<'a, E> Sync for LazyError<'a, E>where
E: Sync,
impl<'a, E> Unpin for LazyError<'a, E>where
E: Unpin,
impl<'a, E> UnwindSafe for LazyError<'a, E>where
E: UnwindSafe,
Blanket Implementations§
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