[][src]Enum cdrs::frame::Flag

pub enum Flag {
    Compression,
    Tracing,
    CustomPayload,
    Warning,
    Ignore,
}

Frame's flag

Variants

Compression
Tracing
CustomPayload
Warning
Ignore

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.