pub struct FinishError<F, E> { /* private fields */ }Expand description
Finishing failed, with the sink’s error type E; the file F is here to end and finish
again, or to give up on.
Implementations§
Source§impl<F, E> FinishError<F, E>
impl<F, E> FinishError<F, E>
Sourcepub const fn error(&self) -> &WriteError<E, Error>
pub const fn error(&self) -> &WriteError<E, Error>
Why it failed.
Sourcepub fn into_inner(self) -> F
pub fn into_inner(self) -> F
The file, as it was.
Sourcepub fn into_parts(self) -> (WriteError<E, Error>, F)
pub fn into_parts(self) -> (WriteError<E, Error>, F)
Why it failed, and the file.
Trait Implementations§
Source§impl<F, E: Debug> Debug for FinishError<F, E>
impl<F, E: Debug> Debug for FinishError<F, E>
Source§impl<F, E> Display for FinishError<F, E>
impl<F, E> Display for FinishError<F, E>
Source§impl<F, E: Error + 'static> Error for FinishError<F, E>
impl<F, E: Error + 'static> Error for FinishError<F, E>
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<F, E> Forget for FinishError<F, E>
impl<F, E> Freeze for FinishError<F, E>
impl<F, E> Move for FinishError<F, E>
impl<F, E> RefUnwindSafe for FinishError<F, E>where
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, E> Send for FinishError<F, E>
impl<F, E> Sync for FinishError<F, E>
impl<F, E> Unpin for FinishError<F, E>
impl<F, E> UnsafeUnpin for FinishError<F, E>where
E: UnsafeUnpin,
F: UnsafeUnpin,
impl<F, E> UnwindSafe for FinishError<F, E>where
E: UnwindSafe,
F: 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