pub enum Header {
Object(ObjectHeader),
Group(GroupHeader),
Track(TrackHeader),
}
Expand description
All supported message types.
Variants§
Implementations§
Source§impl Header
impl Header
pub fn id(&self) -> u64
pub fn subscribe_id(&self) -> u64
pub fn track_alias(&self) -> u64
pub fn publisher_priority(&self) -> u8
Trait Implementations§
Source§impl From<GroupHeader> for Header
impl From<GroupHeader> for Header
Source§fn from(m: GroupHeader) -> Self
fn from(m: GroupHeader) -> Self
Converts to this type from the input type.
Source§impl From<ObjectHeader> for Header
impl From<ObjectHeader> for Header
Source§fn from(m: ObjectHeader) -> Self
fn from(m: ObjectHeader) -> Self
Converts to this type from the input type.
Source§impl From<TrackHeader> for Header
impl From<TrackHeader> for Header
Source§fn from(m: TrackHeader) -> Self
fn from(m: TrackHeader) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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