Struct riot_wrappers::gnrc::ipv6::Address
source · pub struct Address { /* private fields */ }
Available on
riot_module_gnrc
and riot_module_ipv6
only.Implementations§
source§impl Address
impl Address
pub fn raw(&self) -> &[u8; 16]
pub unsafe fn as_ptr(&self) -> *const ipv6_addr_t
sourcepub fn clone_from_ptr(raw: *const ipv6_addr_t) -> Self
pub fn clone_from_ptr(raw: *const ipv6_addr_t) -> Self
Given a ipv6_addr_t, copy the data out into an Address.
That might be inefficient in many cases, and there might be a way to get an &Address newtyped from a &ipv6_addr_t, but right now this was simple to do.
pub fn is_unspecified(&self) -> bool
pub fn is_loopback(&self) -> bool
pub fn is_multicast(&self) -> bool
pub fn is_link_local(&self) -> bool
Trait Implementations§
impl Copy for Address
Auto Trait Implementations§
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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