Type Alias ChannelMode

Source
pub type ChannelMode = ChannelMode;

Aliased Type§

enum ChannelMode {
    Basic,
    EnhancedRetransmission,
    LeCreditBasedFlowControl,
    EnhancedCreditBasedFlowControl,
}

Variants§

§

Basic

BR/EDR only.

§

EnhancedRetransmission

BR/EDR only.

§

LeCreditBasedFlowControl

LE only.

§

EnhancedCreditBasedFlowControl

LE_only.

Implementations

§

impl ChannelMode

pub fn from_primitive(prim: u32) -> Option<ChannelMode>

pub fn from_primitive_allow_unknown(prim: u32) -> ChannelMode

pub fn unknown() -> ChannelMode

pub const fn into_primitive(self) -> u32

pub fn is_unknown(&self) -> bool

Trait Implementations

§

impl Clone for ChannelMode

§

fn clone(&self) -> ChannelMode

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ChannelMode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<D> Decode<ChannelMode, D> for ChannelMode
where D: ResourceDialect,

§

fn new_empty() -> ChannelMode

Creates a valid instance of Self. The specific value does not matter, since it will be overwritten by decode.
§

unsafe fn decode( &mut self, decoder: &mut Decoder<'_, D>, offset: usize, _depth: Depth, ) -> Result<(), Error>

Decodes an object of type T from the decoder’s buffers into self. Read more
§

impl<D> Encode<ChannelMode, D> for ChannelMode
where D: ResourceDialect,

§

unsafe fn encode( self, encoder: &mut Encoder<'_, D>, offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl Hash for ChannelMode

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for ChannelMode

§

fn cmp(&self, other: &ChannelMode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
§

impl PartialEq for ChannelMode

§

fn eq(&self, other: &ChannelMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for ChannelMode

§

fn partial_cmp(&self, other: &ChannelMode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
§

impl TypeMarker for ChannelMode

§

type Owned = ChannelMode

The owned Rust type which this FIDL type decodes into.
§

fn inline_align(_context: Context) -> usize

Returns the minimum required alignment of the inline portion of the encoded object. It must be a (nonzero) power of two.
§

fn inline_size(_context: Context) -> usize

Returns the size of the inline portion of the encoded object, including padding for alignment. Must be a multiple of inline_align.
§

fn encode_is_copy() -> bool

Returns true if the memory layout of Self::Owned matches the FIDL wire format and encoding requires no validation. When true, we can optimize encoding arrays and vectors of Self::Owned to a single memcpy. Read more
§

fn decode_is_copy() -> bool

Returns true if the memory layout of Self::Owned matches the FIDL wire format and decoding requires no validation. When true, we can optimize decoding arrays and vectors of Self::Owned to a single memcpy.
§

impl ValueTypeMarker for ChannelMode

§

type Borrowed<'a> = ChannelMode

The Rust type to use for encoding. This is a particular Encode<Self> type cheaply obtainable from &Self::Owned. There are three cases: Read more
§

fn borrow( value: &<ChannelMode as TypeMarker>::Owned, ) -> <ChannelMode as ValueTypeMarker>::Borrowed<'_>

Cheaply converts from &Self::Owned to Self::Borrowed.
§

impl Copy for ChannelMode

§

impl Eq for ChannelMode

§

impl StructuralPartialEq for ChannelMode