pub struct LinkAddr(/* private fields */);
Expand description
Hardware Address
Implementations§
Trait Implementations§
Source§impl AsRef<sockaddr_ll> for LinkAddr
impl AsRef<sockaddr_ll> for LinkAddr
Source§fn as_ref(&self) -> &sockaddr_ll
fn as_ref(&self) -> &sockaddr_ll
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl SockaddrLike for LinkAddr
impl SockaddrLike for LinkAddr
Source§unsafe fn from_raw(
addr: *const sockaddr,
len: Option<socklen_t>,
) -> Option<Self>where
Self: Sized,
unsafe fn from_raw(
addr: *const sockaddr,
len: Option<socklen_t>,
) -> Option<Self>where
Self: Sized,
Unsafe constructor from a variable length source Read more
Source§fn as_ptr(&self) -> *const sockaddr
fn as_ptr(&self) -> *const sockaddr
Returns a raw pointer to the inner structure. Useful for FFI.
impl Copy for LinkAddr
impl Eq for LinkAddr
impl StructuralPartialEq for LinkAddr
Auto Trait Implementations§
impl Freeze for LinkAddr
impl RefUnwindSafe for LinkAddr
impl Send for LinkAddr
impl Sync for LinkAddr
impl Unpin for LinkAddr
impl UnwindSafe for LinkAddr
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§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
)