pub struct ConstructionError<W: Wrapper> {
pub value: W::Inner,
pub original: W::Error,
}Expand description
A wrapper-error that will be returned if the
Wrapper::new or
Wrapper::set methods receive a value that doesn’t
pass Wrapper::PROCESS function.
This wrapper contains both the value that caused the error and the original
error returned by the Wrapper::PROCESS
function.
Fields§
§value: W::InnerValue that caused the error.
original: W::ErrorOriginal error.
Trait Implementations§
Source§impl<W> Display for ConstructionError<W>
impl<W> Display for ConstructionError<W>
Source§impl<W> Error for ConstructionError<W>
impl<W> Error for ConstructionError<W>
1.30.0 · 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<W> Freeze for ConstructionError<W>
impl<W> RefUnwindSafe for ConstructionError<W>
impl<W> Send for ConstructionError<W>
impl<W> Sync for ConstructionError<W>
impl<W> Unpin for ConstructionError<W>
impl<W> UnwindSafe for ConstructionError<W>
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