pub enum Trailer<'a> {
Extension(ExtensionField<'a>),
Opaque(&'a [u8]),
}Expand description
What follows the fixed header.
Variants§
Extension(ExtensionField<'a>)
A well-formed RFC 7822 extension field.
Opaque(&'a [u8])
Bytes that cannot be a well-formed extension field (e.g. a legacy MAC). Always the final item when present.
Trait Implementations§
impl<'a> Copy for Trailer<'a>
impl<'a> Eq for Trailer<'a>
impl<'a> StructuralPartialEq for Trailer<'a>
Auto Trait Implementations§
impl<'a> Freeze for Trailer<'a>
impl<'a> RefUnwindSafe for Trailer<'a>
impl<'a> Send for Trailer<'a>
impl<'a> Sync for Trailer<'a>
impl<'a> Unpin for Trailer<'a>
impl<'a> UnsafeUnpin for Trailer<'a>
impl<'a> UnwindSafe for Trailer<'a>
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