pub enum OfflineOperationTakeError<T> {
Retryable(HandleOperationError<T>),
Consumed(Error),
}Expand description
Error returned by offline operation result transfers.
Variants§
Retryable(HandleOperationError<T>)
The native transfer failed before consuming the operation result.
Consumed(Error)
The native result was consumed, but copying it into Rust-owned data failed.
Implementations§
Source§impl<T> OfflineOperationTakeError<T>
impl<T> OfflineOperationTakeError<T>
Sourcepub fn raw_status(&self) -> Option<i32>
pub fn raw_status(&self) -> Option<i32>
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_retryable(self) -> Option<HandleOperationError<T>>
pub fn into_retryable(self) -> Option<HandleOperationError<T>>
Returns the retryable error and still-live handle, if the operation was not consumed.
Sourcepub fn into_error(self) -> Error
pub fn into_error(self) -> Error
Returns the operation error, dropping any retryable handle.
Trait Implementations§
Source§impl<T: Debug> Debug for OfflineOperationTakeError<T>
impl<T: Debug> Debug for OfflineOperationTakeError<T>
Source§impl<T> Display for OfflineOperationTakeError<T>
impl<T> Display for OfflineOperationTakeError<T>
Source§impl<T: Debug> Error for OfflineOperationTakeError<T>
impl<T: Debug> Error for OfflineOperationTakeError<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 OfflineOperationTakeError<T>where
T: Freeze,
impl<T> RefUnwindSafe for OfflineOperationTakeError<T>where
T: RefUnwindSafe,
impl<T> Send for OfflineOperationTakeError<T>where
T: Send,
impl<T> Sync for OfflineOperationTakeError<T>where
T: Sync,
impl<T> Unpin for OfflineOperationTakeError<T>where
T: Unpin,
impl<T> UnsafeUnpin for OfflineOperationTakeError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OfflineOperationTakeError<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