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§
Auto Trait Implementations§
impl Freeze for ListLength
impl RefUnwindSafe for ListLength
impl Send for ListLength
impl Sync for ListLength
impl Unpin for ListLength
impl UnwindSafe for ListLength
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