pub struct IpDeviceAddr<A: IpAddress>(/* private fields */);
Expand description
An IP address that witnesses properties needed to be assigned to a device.
Implementations§
Source§impl<A: IpAddress> IpDeviceAddr<A>
impl<A: IpAddress> IpDeviceAddr<A>
Sourcepub fn into_inner(self) -> NonMulticastAddr<NonMappedAddr<SpecifiedAddr<A>>>
pub fn into_inner(self) -> NonMulticastAddr<NonMappedAddr<SpecifiedAddr<A>>>
Returns the inner address, including all witness types.
Sourcepub fn new(addr: A) -> Option<IpDeviceAddr<A>>
pub fn new(addr: A) -> Option<IpDeviceAddr<A>>
Constructs an IpDeviceAddr
if the address is compliant, else None
.
Sourcepub fn new_from_witness(
addr: NonMulticastAddr<NonMappedAddr<SpecifiedAddr<A>>>,
) -> Self
pub fn new_from_witness( addr: NonMulticastAddr<NonMappedAddr<SpecifiedAddr<A>>>, ) -> Self
Constructs an IpDeviceAddr
from the inner witness.
Sourcepub fn new_from_socket_ip_addr(addr: SocketIpAddr<A>) -> Option<Self>
pub fn new_from_socket_ip_addr(addr: SocketIpAddr<A>) -> Option<Self>
Attempts to constructs an IpDeviceAddr
from a SocketIpAddr
.
Source§impl IpDeviceAddr<Ipv6Addr>
impl IpDeviceAddr<Ipv6Addr>
Sourcepub fn new_from_ipv6_device_addr(addr: Ipv6DeviceAddr) -> Self
pub fn new_from_ipv6_device_addr(addr: Ipv6DeviceAddr) -> Self
Constructs an IpDeviceAddr
from the given Ipv6DeviceAddr
.
Sourcepub fn new_from_ipv6_source(addr: Ipv6SourceAddr) -> Option<Self>
pub fn new_from_ipv6_source(addr: Ipv6SourceAddr) -> Option<Self>
Constructs an IpDeviceAddr
from the given Ipv6SourceAddr
.
Trait Implementations§
Source§impl<A: IpAddress> AsRef<SpecifiedAddr<A>> for IpDeviceAddr<A>
impl<A: IpAddress> AsRef<SpecifiedAddr<A>> for IpDeviceAddr<A>
Source§fn as_ref(&self) -> &SpecifiedAddr<A>
fn as_ref(&self) -> &SpecifiedAddr<A>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<A: Clone + IpAddress> Clone for IpDeviceAddr<A>
impl<A: Clone + IpAddress> Clone for IpDeviceAddr<A>
Source§fn clone(&self) -> IpDeviceAddr<A>
fn clone(&self) -> IpDeviceAddr<A>
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<A: IpAddress> Display for IpDeviceAddr<A>
impl<A: IpAddress> Display for IpDeviceAddr<A>
Source§impl<A: IpAddress> From<IpDeviceAddr<A>> for SocketIpAddr<A>
impl<A: IpAddress> From<IpDeviceAddr<A>> for SocketIpAddr<A>
Source§fn from(addr: IpDeviceAddr<A>) -> Self
fn from(addr: IpDeviceAddr<A>) -> Self
Converts to this type from the input type.
Source§impl<A: IpAddress> From<IpDeviceAddr<A>> for SpecifiedAddr<A>
impl<A: IpAddress> From<IpDeviceAddr<A>> for SpecifiedAddr<A>
Source§fn from(addr: IpDeviceAddr<A>) -> Self
fn from(addr: IpDeviceAddr<A>) -> Self
Converts to this type from the input type.
Source§impl<A: IpAddress, IpType: Ip> GenericOverIp<IpType> for IpDeviceAddr<A>
impl<A: IpAddress, IpType: Ip> GenericOverIp<IpType> for IpDeviceAddr<A>
Source§impl<A: IpAddress> TryFrom<SpecifiedAddr<A>> for IpDeviceAddr<A>
impl<A: IpAddress> TryFrom<SpecifiedAddr<A>> for IpDeviceAddr<A>
impl<A: Copy + IpAddress> Copy for IpDeviceAddr<A>
impl<A: Eq + IpAddress> Eq for IpDeviceAddr<A>
impl<A: IpAddress> StructuralPartialEq for IpDeviceAddr<A>
Auto Trait Implementations§
impl<A> Freeze for IpDeviceAddr<A>where
A: Freeze,
impl<A> RefUnwindSafe for IpDeviceAddr<A>where
A: RefUnwindSafe,
impl<A> Send for IpDeviceAddr<A>
impl<A> Sync for IpDeviceAddr<A>
impl<A> Unpin for IpDeviceAddr<A>where
A: Unpin,
impl<A> UnwindSafe for IpDeviceAddr<A>where
A: UnwindSafe,
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
)Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more