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
impl RefUnwindSafe for ListLength
impl Send for ListLength
impl Sync for ListLength
impl Unpin for ListLength
impl UnwindSafe for ListLength
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more