pub struct LlAddr { /* private fields */ }
Expand description
Implements Link-layer addresses.
Also referred to as MAC address and Hardware address.
Implementations§
Source§impl LlAddr
impl LlAddr
Sourcepub fn new(a: u8, b: u8, c: u8, d: u8, e: u8, f: u8) -> LlAddr
pub fn new(a: u8, b: u8, c: u8, d: u8, e: u8, f: u8) -> LlAddr
Returns a Link-layer address.
The result will represent the LL-address a:b:c:d:e:f.
§Example
use asyncio::ip::LlAddr;
let mac = LlAddr::new(0,0,0,0,0,0);
Trait Implementations§
Source§impl AddAssign<i64> for LlAddr
impl AddAssign<i64> for LlAddr
Source§fn add_assign(&mut self, rhs: i64)
fn add_assign(&mut self, rhs: i64)
Performs the
+=
operation. Read moreSource§impl Ord for LlAddr
impl Ord for LlAddr
Source§impl PartialOrd for LlAddr
impl PartialOrd for LlAddr
Source§impl SubAssign<i64> for LlAddr
impl SubAssign<i64> for LlAddr
Source§fn sub_assign(&mut self, rhs: i64)
fn sub_assign(&mut self, rhs: i64)
Performs the
-=
operation. Read moreimpl Eq for LlAddr
impl StructuralPartialEq for LlAddr
Auto Trait Implementations§
impl Freeze for LlAddr
impl RefUnwindSafe for LlAddr
impl Send for LlAddr
impl Sync for LlAddr
impl Unpin for LlAddr
impl UnwindSafe for LlAddr
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