pub struct CloseError { /* private fields */ }Expand description
The error from Mnemo::try_close: the final flush failed, and the
handle comes back with it, still open and still holding every write that
wasn’t flushed.
Implementations§
Source§impl CloseError
impl CloseError
Sourcepub fn error(&self) -> &MnemoError
pub fn error(&self) -> &MnemoError
Why the flush failed.
Sourcepub fn into_inner(self) -> Mnemo
pub fn into_inner(self) -> Mnemo
The handle, to retry Mnemo::flush or Mnemo::try_close.
Sourcepub fn into_parts(self) -> (Mnemo, MnemoError)
pub fn into_parts(self) -> (Mnemo, MnemoError)
The handle and the error.
Trait Implementations§
Source§impl Debug for CloseError
impl Debug for CloseError
Source§impl Display for CloseError
impl Display for CloseError
Source§impl Error for CloseError
impl Error for CloseError
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 !RefUnwindSafe for CloseError
impl !UnwindSafe for CloseError
impl Forget for CloseError
impl Freeze for CloseError
impl Move for CloseError
impl Send for CloseError
impl Sync for CloseError
impl Unpin for CloseError
impl UnsafeUnpin for CloseError
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