Enum PhysicalLayer
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§
§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§
§impl Clone for PhysicalLayer
impl Clone for PhysicalLayer
§fn clone(&self) -> PhysicalLayer
fn clone(&self) -> PhysicalLayer
Returns a copy 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 more§impl Debug for PhysicalLayer
impl Debug for PhysicalLayer
§impl<D> Decode<PhysicalLayer, D> for PhysicalLayerwhere
D: ResourceDialect,
impl<D> Decode<PhysicalLayer, D> for PhysicalLayerwhere
D: ResourceDialect,
§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
.§impl<D> Encode<PhysicalLayer, D> for PhysicalLayerwhere
D: ResourceDialect,
impl<D> Encode<PhysicalLayer, D> for PhysicalLayerwhere
D: ResourceDialect,
§impl Hash for PhysicalLayer
impl Hash for PhysicalLayer
§impl Ord for PhysicalLayer
impl Ord for PhysicalLayer
§impl PartialEq for PhysicalLayer
impl PartialEq for PhysicalLayer
§impl PartialOrd for PhysicalLayer
impl PartialOrd for PhysicalLayer
§impl TypeMarker for PhysicalLayer
impl TypeMarker for PhysicalLayer
§type Owned = PhysicalLayer
type Owned = PhysicalLayer
The owned Rust type which this FIDL type decodes into.
§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.
§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
.§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 more§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.§impl ValueTypeMarker for PhysicalLayer
impl ValueTypeMarker for PhysicalLayer
§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 more§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