pub enum ExtensionForm {
OneByte,
TwoByte,
Rfc3550,
}Expand description
The form of a header-extension block, as its “defined by profile” field selects it.
Variants§
OneByte
RFC 8285 one-byte form (0xBEDE): ids 1 to 14, 1 to 16 bytes each.
TwoByte
RFC 8285 two-byte form (0x100 and four appbits): ids 1 to 255, 0 to 255 bytes each.
Rfc3550
Any other profile: one opaque RFC 3550 section 5.3.1 extension, kept under id 0.
Implementations§
Source§impl ExtensionForm
impl ExtensionForm
Sourcepub fn of_profile(extension_profile: u16) -> Self
pub fn of_profile(extension_profile: u16) -> Self
The form a “defined by profile” value selects. The two-byte form is recognised whatever
its appbits are (RFC 8285 section 4.3: the receiver ignores them).
Trait Implementations§
Source§impl Clone for ExtensionForm
impl Clone for ExtensionForm
impl Copy for ExtensionForm
Source§impl Debug for ExtensionForm
impl Debug for ExtensionForm
impl Eq for ExtensionForm
Source§impl PartialEq for ExtensionForm
impl PartialEq for ExtensionForm
impl StructuralPartialEq for ExtensionForm
Auto Trait Implementations§
impl Forget for ExtensionForm
impl Freeze for ExtensionForm
impl Move for ExtensionForm
impl RefUnwindSafe for ExtensionForm
impl Send for ExtensionForm
impl Sync for ExtensionForm
impl Unpin for ExtensionForm
impl UnsafeUnpin for ExtensionForm
impl UnwindSafe for ExtensionForm
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