Struct mapped_file::TryNewError
source · 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)>
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.