Enum cdrs::frame::Flag
[−]
[src]
pub enum Flag { Compression, Tracing, CustomPayload, Warning, Ignore, }
Frame's flag
Variants
Compression
Tracing
CustomPayload
Warning
Ignore
Methods
impl Flag
[src]
fn get_collection(flags: u8) -> Vec<Flag>
fn many_to_cbytes(flags: &Vec<Flag>) -> u8
The method converts a serie of Flag
-s into a single byte.
fn has_compression(flags: u8) -> bool
Indicates if flags contains Flag::Compression
fn has_tracing(flags: u8) -> bool
Indicates if flags contains Flag::Tracing
fn has_custom_payload(flags: u8) -> bool
Indicates if flags contains Flag::CustomPayload
fn has_warning(flags: u8) -> bool
Indicates if flags contains Flag::Warning
Trait Implementations
impl Debug for Flag
[src]
impl PartialEq for Flag
[src]
fn eq(&self, __arg_0: &Flag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.