[−][src]Enum cdrs::frame::Flag
Frame's flag
Variants
Methods
impl Flag
[src]
pub fn get_collection(flags: u8) -> Vec<Flag>
[src]
It returns selected flags collection.
pub fn many_to_cbytes(flags: &Vec<Flag>) -> u8
[src]
The method converts a serie of Flag
-s into a single byte.
pub fn has_compression(flags: u8) -> bool
[src]
Indicates if flags contains Flag::Compression
pub fn has_tracing(flags: u8) -> bool
[src]
Indicates if flags contains Flag::Tracing
pub fn has_custom_payload(flags: u8) -> bool
[src]
Indicates if flags contains Flag::CustomPayload
pub fn has_warning(flags: u8) -> bool
[src]
Indicates if flags contains Flag::Warning
Trait Implementations
impl AsByte for Flag
[src]
impl Debug for Flag
[src]
impl From<u8> for Flag
[src]
impl PartialEq<Flag> for Flag
[src]
impl StructuralPartialEq for Flag
[src]
Auto Trait Implementations
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnwindSafe for Flag
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,