Struct aaronia_rtsa::PacketFlags
source · pub struct PacketFlags { /* private fields */ }
Expand description
Packet Flags
Implementations§
source§impl PacketFlags
impl PacketFlags
sourcepub fn segment_start(&self) -> bool
pub fn segment_start(&self) -> bool
Is packet start of a segment?
sourcepub fn segment_end(&self) -> bool
pub fn segment_end(&self) -> bool
Is packet end of a segment?
sourcepub fn stream_start(&self) -> bool
pub fn stream_start(&self) -> bool
Is packet start of a stream?
sourcepub fn stream_end(&self) -> bool
pub fn stream_end(&self) -> bool
Is packet end of a stream?
sourcepub fn set_segment_start(&mut self) -> &mut Self
pub fn set_segment_start(&mut self) -> &mut Self
Set flag to indicate start of a segment.
sourcepub fn set_segment_end(&mut self) -> &mut Self
pub fn set_segment_end(&mut self) -> &mut Self
Set flag to indicate end of a segment.
sourcepub fn set_stream_start(&mut self) -> &mut Self
pub fn set_stream_start(&mut self) -> &mut Self
Set flag to indicate start of a stream.
sourcepub fn set_stream_end(&mut self) -> &mut Self
pub fn set_stream_end(&mut self) -> &mut Self
Set flag to indicate end of a stream.
Trait Implementations§
source§impl Clone for PacketFlags
impl Clone for PacketFlags
source§fn clone(&self) -> PacketFlags
fn clone(&self) -> PacketFlags
Returns a copy 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 PacketFlags
impl Debug for PacketFlags
source§impl Default for PacketFlags
impl Default for PacketFlags
source§impl From<PacketFlags> for u64
impl From<PacketFlags> for u64
source§fn from(value: PacketFlags) -> Self
fn from(value: PacketFlags) -> Self
Converts to this type from the input type.