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
sourceimpl<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.
sourceimpl<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
sourceimpl<T: ?Sized> Debug for TryNewError<T>
impl<T: ?Sized> Debug for TryNewError<T>
sourceimpl<T: ?Sized> Display for TryNewError<T>
impl<T: ?Sized> Display for TryNewError<T>
sourceimpl<T: ?Sized> Error for TryNewError<T>
impl<T: ?Sized> Error for TryNewError<T>
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl<T> From<TryNewError<T>> for Error
impl<T> From<TryNewError<T>> for Error
sourcefn from(from: TryNewError<T>) -> Self
fn from(from: TryNewError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<T> !RefUnwindSafe for TryNewError<T>
impl<T: ?Sized> Send for TryNewError<T>where
T: Send,
impl<T: ?Sized> Sync for TryNewError<T>where
T: Sync,
impl<T: ?Sized> Unpin for TryNewError<T>where
T: Unpin,
impl<T> !UnwindSafe for TryNewError<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more