Enum capsules_extra::net::ieee802154::AddressMode
source · #[repr(u8)]pub enum AddressMode {
NotPresent = 0,
Short = 2,
Long = 3,
}
Variants§
Implementations§
source§impl AddressMode
impl AddressMode
pub fn from_mode(mode: u16) -> Option<AddressMode>
Trait Implementations§
source§impl Clone for AddressMode
impl Clone for AddressMode
source§fn clone(&self) -> AddressMode
fn clone(&self) -> AddressMode
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 moresource§impl Debug for AddressMode
impl Debug for AddressMode
source§impl<'a> From<&'a Option<MacAddress>> for AddressMode
impl<'a> From<&'a Option<MacAddress>> for AddressMode
source§fn from(opt_addr: &'a Option<MacAddress>) -> Self
fn from(opt_addr: &'a Option<MacAddress>) -> Self
Converts to this type from the input type.
source§impl PartialEq for AddressMode
impl PartialEq for AddressMode
source§fn eq(&self, other: &AddressMode) -> bool
fn eq(&self, other: &AddressMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AddressMode
impl Eq for AddressMode
impl StructuralPartialEq for AddressMode
Auto Trait Implementations§
impl Freeze for AddressMode
impl RefUnwindSafe for AddressMode
impl Send for AddressMode
impl Sync for AddressMode
impl Unpin for AddressMode
impl UnwindSafe for AddressMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)