pub struct DatagramHeader {
pub datagram_type: u8,
pub track_alias: VarInt,
pub group_id: VarInt,
pub object_id: VarInt,
pub publisher_priority: Option<u8>,
pub extension_headers: Vec<u8>,
pub object_status: Option<VarInt>,
}Fields§
§datagram_type: u8§track_alias: VarInt§group_id: VarInt§object_id: VarInt§publisher_priority: Option<u8>Publisher priority — None when the DEFAULT_PRIORITY flag is set and
the priority is inherited from the subscription’s control message.
extension_headers: Vec<u8>Opaque extension-headers blob (only when flag 0x01 is set).
object_status: Option<VarInt>Implementations§
Source§impl DatagramHeader
impl DatagramHeader
pub fn has_extensions(&self) -> bool
pub fn is_end_of_group(&self) -> bool
pub fn has_object_id(&self) -> bool
Sourcepub fn has_default_priority(&self) -> bool
pub fn has_default_priority(&self) -> bool
When set, publisher_priority is omitted on the wire and inherited from the subscription / control-message context.
pub fn is_status(&self) -> bool
pub fn encode(&self, buf: &mut impl BufMut)
pub fn decode(buf: &mut impl Buf) -> Result<Self, CodecError>
Trait Implementations§
Source§impl Clone for DatagramHeader
impl Clone for DatagramHeader
Source§fn clone(&self) -> DatagramHeader
fn clone(&self) -> DatagramHeader
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 DatagramHeader
impl Debug for DatagramHeader
Source§impl PartialEq for DatagramHeader
impl PartialEq for DatagramHeader
impl Eq for DatagramHeader
impl StructuralPartialEq for DatagramHeader
Auto Trait Implementations§
impl Freeze for DatagramHeader
impl RefUnwindSafe for DatagramHeader
impl Send for DatagramHeader
impl Sync for DatagramHeader
impl Unpin for DatagramHeader
impl UnsafeUnpin for DatagramHeader
impl UnwindSafe for DatagramHeader
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