pub enum PacketEncodingError<'a> {
PacketNumberTruncationError(EncoderBuffer<'a>),
InsufficientSpace(EncoderBuffer<'a>),
EmptyPayload(EncoderBuffer<'a>),
AeadLimitReached(EncoderBuffer<'a>),
}
Variants§
PacketNumberTruncationError(EncoderBuffer<'a>)
The packet number could not be truncated with the current largest_acknowledged_packet_number
InsufficientSpace(EncoderBuffer<'a>)
The buffer does not have enough space to hold the packet encoding.
EmptyPayload(EncoderBuffer<'a>)
The payload did not write anything
AeadLimitReached(EncoderBuffer<'a>)
The key used to encrypt the buffer has exceeded the confidentiality limit
Implementations§
Source§impl<'a> PacketEncodingError<'a>
impl<'a> PacketEncodingError<'a>
Sourcepub fn take_buffer(self) -> EncoderBuffer<'a>
pub fn take_buffer(self) -> EncoderBuffer<'a>
Returns the buffer that experienced an encoding error
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PacketEncodingError<'a>
impl<'a> RefUnwindSafe for PacketEncodingError<'a>
impl<'a> Send for PacketEncodingError<'a>
impl<'a> Sync for PacketEncodingError<'a>
impl<'a> Unpin for PacketEncodingError<'a>
impl<'a> !UnwindSafe for PacketEncodingError<'a>
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