Enum s2n_codec::decoder::DecoderError
source · pub enum DecoderError {
UnexpectedEof(usize),
UnexpectedBytes(usize),
LengthCapacityExceeded,
InvariantViolation(&'static str),
}
Variants§
UnexpectedEof(usize)
UnexpectedBytes(usize)
LengthCapacityExceeded
InvariantViolation(&'static str)
Trait Implementations§
source§impl Clone for DecoderError
impl Clone for DecoderError
source§fn clone(&self) -> DecoderError
fn clone(&self) -> DecoderError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecoderError
impl Debug for DecoderError
source§impl Display for DecoderError
impl Display for DecoderError
source§impl From<DecoderError> for &'static str
impl From<DecoderError> for &'static str
source§fn from(error: DecoderError) -> Self
fn from(error: DecoderError) -> Self
Converts to this type from the input type.
impl Copy for DecoderError
Auto Trait Implementations§
impl Freeze for DecoderError
impl RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnwindSafe for DecoderError
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