pub struct SubgroupObject {
pub object_id: VarInt,
pub extension_headers: Vec<u8>,
pub status: Option<ObjectStatus>,
pub payload: Vec<u8>,
}Expand description
One object within a subgroup stream, with the Object ID already resolved from its delta encoding.
Fields§
§object_id: VarIntResolved Object ID (delta decoded to an absolute value).
extension_headers: Vec<u8>Raw extension-header bytes. Empty when the stream type has
Extensions Present = No, or when present but the length was 0.
The content is a sequence of Key-Value-Pairs (§10.2.1.2) but is
left opaque here — relays and subscribers that do not understand
specific extensions must forward or ignore the bytes unchanged.
status: Option<ObjectStatus>Object Status when payload.is_empty() and the object was sent
with an explicit status code; None when a non-empty payload
follows (status is implicitly ObjectStatus::Normal).
payload: Vec<u8>Object payload. Empty when status is Some(..).
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 moreSource§impl Debug for SubgroupObject
impl Debug for SubgroupObject
Source§impl PartialEq for SubgroupObject
impl PartialEq for SubgroupObject
impl Eq for SubgroupObject
impl StructuralPartialEq for SubgroupObject
Auto 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