pub enum DataPacketError {
BufferFull {
seq_number: SeqNumber,
buffer_size: usize,
},
PacketTooEarly {
seq_number: SeqNumber,
buffer_available: usize,
buffer_required: usize,
},
PacketTooLate {
seq_number: SeqNumber,
seq_number_0: SeqNumber,
},
DiscardedDuplicate {
seq_number: SeqNumber,
},
DecryptionError(DecryptionError),
}Variants§
Trait Implementations§
Source§impl Debug for DataPacketError
impl Debug for DataPacketError
impl Eq for DataPacketError
Source§impl PartialEq for DataPacketError
impl PartialEq for DataPacketError
Source§fn eq(&self, other: &DataPacketError) -> bool
fn eq(&self, other: &DataPacketError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DataPacketError
Auto Trait Implementations§
impl !Freeze for DataPacketError
impl RefUnwindSafe for DataPacketError
impl Send for DataPacketError
impl Sync for DataPacketError
impl Unpin for DataPacketError
impl UnsafeUnpin for DataPacketError
impl UnwindSafe for DataPacketError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.