pub struct OperationOutcomeError {
pub outcome: OperationOutcome,
pub operation_class: OperationClass,
pub transmission: RequestTransmission,
pub recovery: RecoveryAction,
pub completed_bytes: Option<u64>,
pub source: Box<NfsError>,
/* private fields */
}Expand description
Structured disposition for an operation whose normal result was not returned.
Fields§
§outcome: OperationOutcome§operation_class: OperationClass§transmission: RequestTransmission§recovery: RecoveryAction§completed_bytes: Option<u64>§source: Box<NfsError>Implementations§
Source§impl OperationOutcomeError
impl OperationOutcomeError
pub fn new( outcome: OperationOutcome, operation_class: OperationClass, recovery: RecoveryAction, context: RequestContext, source: NfsError, ) -> Self
pub fn context(&self) -> &RequestContext
Sourcepub fn with_completed_bytes(self, completed_bytes: u64) -> Self
pub fn with_completed_bytes(self, completed_bytes: u64) -> Self
Records bytes completed by authoritative preceding chunks. The current uncertain chunk must never be included in this count.
Trait Implementations§
Source§impl Debug for OperationOutcomeError
impl Debug for OperationOutcomeError
Source§impl Display for OperationOutcomeError
impl Display for OperationOutcomeError
Source§impl Error for OperationOutcomeError
impl Error for OperationOutcomeError
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 OperationOutcomeError
impl !UnwindSafe for OperationOutcomeError
impl Freeze for OperationOutcomeError
impl Send for OperationOutcomeError
impl Sync for OperationOutcomeError
impl Unpin for OperationOutcomeError
impl UnsafeUnpin for OperationOutcomeError
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