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

Returns the buffer that experienced an encoding error

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.