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]
impl Flag
pub fn get_collection(flags: u8) -> Vec<Flag>
[src]
pub fn get_collection(flags: u8) -> Vec<Flag>
It returns selected flags collection.
pub fn many_to_cbytes(flags: &Vec<Flag>) -> u8
[src]
pub fn many_to_cbytes(flags: &Vec<Flag>) -> u8
The method converts a serie of Flag
-s into a single byte.
pub fn has_compression(flags: u8) -> bool
[src]
pub fn has_compression(flags: u8) -> bool
Indicates if flags contains Flag::Compression
pub fn has_tracing(flags: u8) -> bool
[src]
pub fn has_tracing(flags: u8) -> bool
Indicates if flags contains Flag::Tracing
pub fn has_custom_payload(flags: u8) -> bool
[src]
pub fn has_custom_payload(flags: u8) -> bool
Indicates if flags contains Flag::CustomPayload
pub fn has_warning(flags: u8) -> bool
[src]
pub fn has_warning(flags: u8) -> bool
Indicates if flags contains Flag::Warning
Trait Implementations
impl Debug for Flag
[src]
impl Debug for Flag
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Flag
[src]
impl PartialEq for Flag
fn eq(&self, other: &Flag) -> bool
[src]
fn eq(&self, other: &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[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl AsByte for Flag
[src]
impl AsByte for Flag
impl From<u8> for Flag
[src]
impl From<u8> for Flag