pub struct PrefixedList<'a, L, T> {
pub list: &'a [T],
/* private fields */
}Expand description
A PrefixedList represents a length prefixed list, with a length prefix of L
and elements of type T.
Note that this will neither allocate nor copy T, so it must be valid to directly
construct them from the underlying &[u8].
This type is particularly useful for representing TLS messages, such as a list
of supported NamedGroup items in the Supported Groups extension.
Fields§
§list: &'a [T]Trait Implementations§
Source§impl<'a, L: Into<usize> + DecoderValue<'a>, T: FromBytes + Immutable + Unaligned> DecoderValue<'a> for PrefixedList<'a, L, T>
impl<'a, L: Into<usize> + DecoderValue<'a>, T: FromBytes + Immutable + Unaligned> DecoderValue<'a> for PrefixedList<'a, L, T>
fn decode(bytes: DecoderBuffer<'a>) -> DecoderBufferResult<'a, Self>
Auto Trait Implementations§
impl<'a, L, T> Freeze for PrefixedList<'a, L, T>
impl<'a, L, T> RefUnwindSafe for PrefixedList<'a, L, T>where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, L, T> Send for PrefixedList<'a, L, T>
impl<'a, L, T> Sync for PrefixedList<'a, L, T>
impl<'a, L, T> Unpin for PrefixedList<'a, L, T>where
L: Unpin,
impl<'a, L, T> UnsafeUnpin for PrefixedList<'a, L, T>
impl<'a, L, T> UnwindSafe for PrefixedList<'a, L, T>where
L: UnwindSafe,
T: RefUnwindSafe,
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