pub struct Ext {
pub extended_type: u32,
pub metadata: BytesMut,
pub data: BytesMut,
/* private fields */
}
Expand description
EXT (Extension) Frame (0x3F)
The general format for an extension frame is given below.
§Frame Contents
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Stream ID |
+-----------+-+-+---------------+-------------------------------+
|Frame Type |I|M| Flags |
+-------------------------------+-------------------------------+
|0| Extended Type |
+---------------------------------------------------------------+
Depends on Extended Type...
Fields§
§extended_type: u32
Extended Type
Unsigned 31-bit integer of Extended type information. Value MUST be > 0.
metadata: BytesMut
Extended Payload Metadata
data: BytesMut
Extended Payload Data
Implementations§
Source§impl Ext
impl Ext
Sourcepub fn set_metadata(&mut self, metadata: BytesMut)
pub fn set_metadata(&mut self, metadata: BytesMut)
Sets the value of Ext.metadata
Sourcepub const fn builder() -> ExtBuilder
pub const fn builder() -> ExtBuilder
Creates a builder to builder a frame of this type.
Trait Implementations§
Source§impl Decoder for Ext
impl Decoder for Ext
Source§impl Encoder for Ext
impl Encoder for Ext
Source§impl FrameVariant for Ext
impl FrameVariant for Ext
Source§const FLAGS_MASK: FrameFlags
const FLAGS_MASK: FrameFlags
Mask that flags of a variant must be in.
Source§fn flags(&self) -> FrameFlags
fn flags(&self) -> FrameFlags
Gets the flags of the variant.
Source§const REQUIRED_FLAGS: FrameFlags = _
const REQUIRED_FLAGS: FrameFlags = _
Flags that must be set for a variant.
Auto Trait Implementations§
impl Freeze for Ext
impl RefUnwindSafe for Ext
impl Send for Ext
impl Sync for Ext
impl Unpin for Ext
impl UnwindSafe for Ext
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