pub enum PhysicalLayer {
    Le1M,
    Le2M,
    LeCoded,
    // some variants omitted
}Expand description
The physical layer configuration for LE radio transmissions.
Variants§
Le1M
The 1 Megabit PHY is the original and default PHY with balanced throughput and range.
Le2M
The 2 Megabit PHY supports increased throughput at the cost of a reduced range.
LeCoded
The Coded PHY increases the maximum range by using enhanced error detection and correction at the cost of reduced throughput.
Implementations§
Source§impl PhysicalLayer
 
impl PhysicalLayer
pub fn from_primitive(prim: u8) -> Option<PhysicalLayer>
pub fn from_primitive_allow_unknown(prim: u8) -> PhysicalLayer
pub fn unknown() -> PhysicalLayer
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for PhysicalLayer
 
impl Clone for PhysicalLayer
Source§fn clone(&self) -> PhysicalLayer
 
fn clone(&self) -> PhysicalLayer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for PhysicalLayer
 
impl Debug for PhysicalLayer
Source§impl<D> Decode<PhysicalLayer, D> for PhysicalLayerwhere
    D: ResourceDialect,
 
impl<D> Decode<PhysicalLayer, D> for PhysicalLayerwhere
    D: ResourceDialect,
Source§fn new_empty() -> PhysicalLayer
 
fn new_empty() -> PhysicalLayer
Creates a valid instance of 
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<PhysicalLayer, D> for PhysicalLayerwhere
    D: ResourceDialect,
 
impl<D> Encode<PhysicalLayer, D> for PhysicalLayerwhere
    D: ResourceDialect,
Source§impl Hash for PhysicalLayer
 
impl Hash for PhysicalLayer
Source§impl Ord for PhysicalLayer
 
impl Ord for PhysicalLayer
Source§fn cmp(&self, other: &PhysicalLayer) -> Ordering
 
fn cmp(&self, other: &PhysicalLayer) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PhysicalLayer
 
impl PartialEq for PhysicalLayer
Source§impl PartialOrd for PhysicalLayer
 
impl PartialOrd for PhysicalLayer
Source§impl TypeMarker for PhysicalLayer
 
impl TypeMarker for PhysicalLayer
Source§type Owned = PhysicalLayer
 
type Owned = PhysicalLayer
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
 
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.
Source§fn inline_size(_context: Context) -> usize
 
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.Source§fn encode_is_copy() -> bool
 
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 moreSource§fn decode_is_copy() -> bool
 
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.Source§impl ValueTypeMarker for PhysicalLayer
 
impl ValueTypeMarker for PhysicalLayer
Source§type Borrowed<'a> = PhysicalLayer
 
type Borrowed<'a> = PhysicalLayer
The Rust type to use for encoding. This is a particular 
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
    value: &<PhysicalLayer as TypeMarker>::Owned,
) -> <PhysicalLayer as ValueTypeMarker>::Borrowed<'_>
 
fn borrow( value: &<PhysicalLayer as TypeMarker>::Owned, ) -> <PhysicalLayer as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from 
&Self::Owned to Self::Borrowed.impl Copy for PhysicalLayer
impl Eq for PhysicalLayer
impl StructuralPartialEq for PhysicalLayer
Auto Trait Implementations§
impl Freeze for PhysicalLayer
impl RefUnwindSafe for PhysicalLayer
impl Send for PhysicalLayer
impl Sync for PhysicalLayer
impl Unpin for PhysicalLayer
impl UnwindSafe for PhysicalLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more