pub enum EnvelopeError {
Malformed(ParseError),
UnknownCritical(u16),
InvalidOptionValue(u16),
}Expand description
Why an envelope could not be read.
Variants§
Malformed(ParseError)
The payload ended before the envelope was complete, or the option block is malformed.
UnknownCritical(u16)
An option this implementation does not recognize, in the critical
(odd-numbered) range. A device answers STATUS_UNIMPLEMENTED; an
administrator treats the exchange as failed.
InvalidOptionValue(u16)
A recognized option carried a value it cannot hold: a cursor outside 1–8 octets, or a REMAINING that is not a packed unsigned integer.
Trait Implementations§
Source§impl Clone for EnvelopeError
impl Clone for EnvelopeError
Source§fn clone(&self) -> EnvelopeError
fn clone(&self) -> EnvelopeError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvelopeError
impl Debug for EnvelopeError
Source§impl From<ParseError> for EnvelopeError
impl From<ParseError> for EnvelopeError
Source§impl PartialEq for EnvelopeError
impl PartialEq for EnvelopeError
impl Copy for EnvelopeError
impl Eq for EnvelopeError
impl StructuralPartialEq for EnvelopeError
Auto Trait Implementations§
impl Freeze for EnvelopeError
impl RefUnwindSafe for EnvelopeError
impl Send for EnvelopeError
impl Sync for EnvelopeError
impl Unpin for EnvelopeError
impl UnwindSafe for EnvelopeError
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)