pub struct SubgroupObject {
pub object_id: VarInt,
pub extension_headers: Vec<u8>,
pub payload_length: VarInt,
pub object_status: Option<VarInt>,
pub payload: Vec<u8>,
}Expand description
One object within a draft-17 subgroup stream. Object IDs are
delta-encoded and the presence of a “properties” block (the
draft-17 equivalent of extension headers) is determined by the
PROPERTIES bit on the enclosing SubgroupHeader. Use
SubgroupObjectReader to encode/decode.
Fields§
§object_id: VarInt§extension_headers: Vec<u8>Raw properties bytes (empty unless the subgroup header sets the
PROPERTIES bit). When present, holds the ext_count varint
followed by each property’s key, vlen, and value.
payload_length: VarInt§object_status: Option<VarInt>§payload: Vec<u8>Trait Implementations§
Source§impl Clone for SubgroupObject
impl Clone for SubgroupObject
Source§fn clone(&self) -> SubgroupObject
fn clone(&self) -> SubgroupObject
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 moreAuto Trait Implementations§
impl Freeze for SubgroupObject
impl RefUnwindSafe for SubgroupObject
impl Send for SubgroupObject
impl Sync for SubgroupObject
impl Unpin for SubgroupObject
impl UnsafeUnpin for SubgroupObject
impl UnwindSafe for SubgroupObject
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