#[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
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