pub struct TryNewError<T: ?Sized> { /* private fields */ }
Expand description
Error returned when mapping operation fails.
Also returns the value passed in.
Implementations§
Source§impl<T: ?Sized> TryNewError<T>
impl<T: ?Sized> TryNewError<T>
Sourcepub fn into_error_box(self: Box<Self>) -> Box<Error>
pub fn into_error_box(self: Box<Self>) -> Box<Error>
Consume a boxed instance and return the boxed IO error.
Source§impl<T> TryNewError<T>
impl<T> TryNewError<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume into the contained value
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Consume into the IO error
Sourcepub fn into_parts(self) -> (T, Error)
pub fn into_parts(self) -> (T, Error)
Consume into the value and the error.
Trait Implementations§
Source§impl<T: ?Sized> Debug for TryNewError<T>
impl<T: ?Sized> Debug for TryNewError<T>
Source§impl<T: ?Sized> Display for TryNewError<T>
impl<T: ?Sized> Display for TryNewError<T>
Source§impl<T: ?Sized> Error for TryNewError<T>
impl<T: ?Sized> Error for TryNewError<T>
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()
Source§impl<T> From<TryNewError<T>> for Error
impl<T> From<TryNewError<T>> for Error
Source§fn from(from: TryNewError<T>) -> Self
fn from(from: TryNewError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for TryNewError<T>
impl<T> !RefUnwindSafe for TryNewError<T>
impl<T> Send for TryNewError<T>
impl<T> Sync for TryNewError<T>
impl<T> Unpin for TryNewError<T>
impl<T> !UnwindSafe for TryNewError<T>
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