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-15 subgroup stream with its Object ID already resolved from the delta encoding.
Draft-15 object framing requires context from the enclosing
SubgroupHeader (specifically, whether extension headers are
present and the running delta state), so decoding/encoding uses a
stateful SubgroupObjectReader rather than a standalone method.
Fields§
§object_id: VarIntResolved absolute Object ID.
extension_headers: Vec<u8>Raw extension-header bytes. Empty when the stream header does
not set the extensions-present bit. When present, holds the
entire on-wire extension block starting with the ext_count
varint followed by each extension’s key, vlen, and value.
payload_length: VarIntPayload length as encoded on the wire. Zero when the object is a status-only object.
object_status: Option<VarInt>Object status; Some when payload_length == 0.
payload: Vec<u8>Payload bytes; empty when object_status is Some.
Trait Implementations§
Source§impl Clone for SubgroupObject
impl Clone for SubgroupObject
Source§fn clone(&self) -> SubgroupObject
fn clone(&self) -> SubgroupObject
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more