pub struct HandleOperationError<T> { /* private fields */ }Expand description
Error returned by consuming one-shot handle operations when the handle remains live and the operation can be retried.
Implementations§
Source§impl<T> HandleOperationError<T>
impl<T> HandleOperationError<T>
Sourcepub fn raw_status(&self) -> Option<mln_status>
pub fn raw_status(&self) -> Option<mln_status>
Returns the raw C status for native operation errors, when available.
Sourcepub fn diagnostic(&self) -> &str
pub fn diagnostic(&self) -> &str
Returns the copied diagnostic message for the operation error.
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Returns the operation error, dropping the still-live handle.
Sourcepub fn into_handle(self) -> T
pub fn into_handle(self) -> T
Returns the still-live handle so the operation can be retried.
Sourcepub fn into_parts(self) -> (Error, T)
pub fn into_parts(self) -> (Error, T)
Splits this error into the operation error and still-live handle.
Trait Implementations§
Source§impl<T: Debug> Debug for HandleOperationError<T>
impl<T: Debug> Debug for HandleOperationError<T>
Source§impl<T> Display for HandleOperationError<T>
impl<T> Display for HandleOperationError<T>
Source§impl<T: Debug> Error for HandleOperationError<T>
impl<T: Debug> Error for HandleOperationError<T>
1.30.0 · 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<T> Freeze for HandleOperationError<T>where
T: Freeze,
impl<T> RefUnwindSafe for HandleOperationError<T>where
T: RefUnwindSafe,
impl<T> Send for HandleOperationError<T>where
T: Send,
impl<T> Sync for HandleOperationError<T>where
T: Sync,
impl<T> Unpin for HandleOperationError<T>where
T: Unpin,
impl<T> UnsafeUnpin for HandleOperationError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HandleOperationError<T>where
T: 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