pub struct MetadataPush {
pub metadata: BytesMut,
/* private fields */
}
Expand description
METADATA_PUSH Frame (0x0C)
A Metadata Push frame can be used to send asynchronous metadata notifications from a Requester or Responder to its peer.
METADATA_PUSH frames MUST always use Stream ID 0 as they pertain to the Connection.
Metadata tied to a particular stream uses the individual Payload frame Metadata flag.
§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 = 0 |
+-----------+-+-+---------------+-------------------------------+
|Frame Type |0|1| Flags |
+-------------------------------+-------------------------------+
Metadata
Fields§
§metadata: BytesMut
Frame Metadata
This frame only supports Metadata, so the Metadata Length header MUST NOT be included.
Implementations§
Source§impl MetadataPush
impl MetadataPush
Sourcepub fn set_metadata(&mut self, metadata: BytesMut)
pub fn set_metadata(&mut self, metadata: BytesMut)
Sets the value of MetadataPush.metadata
Sourcepub const fn builder() -> MetadataPushBuilder
pub const fn builder() -> MetadataPushBuilder
Creates a builder to builder a frame of this type.
Trait Implementations§
Source§impl Clone for MetadataPush
impl Clone for MetadataPush
Source§fn clone(&self) -> MetadataPush
fn clone(&self) -> MetadataPush
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetadataPush
impl Debug for MetadataPush
Source§impl Decoder for MetadataPush
impl Decoder for MetadataPush
Source§impl Encoder for MetadataPush
impl Encoder for MetadataPush
Source§impl FrameVariant for MetadataPush
impl FrameVariant for MetadataPush
Source§const FLAGS_MASK: FrameFlags
const FLAGS_MASK: FrameFlags
Mask that flags of a variant must be in.
Source§const REQUIRED_FLAGS: FrameFlags
const REQUIRED_FLAGS: FrameFlags
Flags that must be set for a variant.
Source§fn flags(&self) -> FrameFlags
fn flags(&self) -> FrameFlags
Gets the flags of the variant.
Source§impl From<MetadataPush> for Frame
impl From<MetadataPush> for Frame
Source§fn from(value: MetadataPush) -> Self
fn from(value: MetadataPush) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MetadataPush
impl RefUnwindSafe for MetadataPush
impl Send for MetadataPush
impl Sync for MetadataPush
impl Unpin for MetadataPush
impl UnwindSafe for MetadataPush
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