pub enum ListLength {
    U8,
    U16,
    U24 {
        max: usize,
    },
}
Expand description

The length of the length prefix for a list.

The types that appear in lists are limited to three kinds of length prefixes: 1, 2, and 3 bytes. For the latter kind, we require a TlsListElement implementer to specify a maximum length.

Variants

U8

U16

U24

Fields

max: usize

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.