pub enum Failure {
TimedOut,
UnknownCriticalOption(u16),
Malformed,
TooLarge,
CursorInvalid,
}Expand description
How an exchange ended.
Variants§
TimedOut
Every attempt went unanswered.
UnknownCriticalOption(u16)
A response carried a critical option this implementation does not recognize, so what it says cannot be trusted.
Malformed
A response could not be read as an envelope, or its frame could not be parsed.
TooLarge
A continued read produced more than the reassembly buffer holds.
CursorInvalid
The device refused the cursor. The caller restarts the read from a cursor-less request.
Trait Implementations§
impl Copy for Failure
impl Eq for Failure
impl StructuralPartialEq for Failure
Auto Trait Implementations§
impl Freeze for Failure
impl RefUnwindSafe for Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl UnwindSafe for Failure
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)