pub struct DatagramHeader {
pub track_alias: VarInt,
pub group_id: VarInt,
pub object_id: VarInt,
pub publisher_priority: u8,
pub extension_headers_length: VarInt,
pub extensions: Vec<u8>,
pub end_of_group: bool,
}Fields§
§track_alias: VarInt§group_id: VarInt§object_id: VarInt§publisher_priority: u8§extension_headers_length: VarInt§extensions: Vec<u8>§end_of_group: boolImplementations§
Source§impl DatagramHeader
impl DatagramHeader
pub fn encode(&self, buf: &mut impl BufMut)
pub fn encode_with_extensions( &self, has_extensions: bool, buf: &mut impl BufMut, )
pub fn decode(buf: &mut impl Buf) -> Result<Self, CodecError>
pub fn decode_with_extensions( has_extensions: bool, 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