pub struct IPAddr(pub [u8; 16]);
Tuple Fields§
§0: [u8; 16]
Implementations§
source§impl IPAddr
impl IPAddr
pub fn new() -> IPAddr
sourcepub fn generate_from_mac(mac_addr: MacAddress) -> IPAddr
pub fn generate_from_mac(mac_addr: MacAddress) -> IPAddr
Method for generating a new ipv6 link local address from a short or extended 15.4 MAC address Based off of section 3.2.2 of rfc 6282
pub fn is_unspecified(&self) -> bool
pub fn is_unicast_link_local(&self) -> bool
pub fn set_unicast_link_local(&mut self)
pub fn set_prefix(&mut self, prefix: &[u8], prefix_len: u8)
pub fn is_multicast(&self) -> bool
Trait Implementations§
source§impl PartialEq for IPAddr
impl PartialEq for IPAddr
impl Copy for IPAddr
impl Eq for IPAddr
Auto Trait Implementations§
impl Freeze for IPAddr
impl RefUnwindSafe for IPAddr
impl Send for IPAddr
impl Sync for IPAddr
impl Unpin for IPAddr
impl UnwindSafe for IPAddr
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
)