pub enum AddressStatus<S> {
Present(S),
Unassigned,
}
Expand description
The status of an IP address on an interface.
Variants§
Implementations§
Source§impl AddressStatus<Ipv4PresentAddressStatus>
impl AddressStatus<Ipv4PresentAddressStatus>
Sourcepub fn from_context_addr_v4<BC: IpDeviceStateBindingsTypes, CC: IpDeviceStateContext<Ipv4, BC> + GmpQueryHandler<Ipv4, BC>>(
core_ctx: &mut CC,
device: &CC::DeviceId,
addr: SpecifiedAddr<Ipv4Addr>,
) -> AddressStatus<Ipv4PresentAddressStatus>
pub fn from_context_addr_v4<BC: IpDeviceStateBindingsTypes, CC: IpDeviceStateContext<Ipv4, BC> + GmpQueryHandler<Ipv4, BC>>( core_ctx: &mut CC, device: &CC::DeviceId, addr: SpecifiedAddr<Ipv4Addr>, ) -> AddressStatus<Ipv4PresentAddressStatus>
Creates an IPv4 AddressStatus
for addr
on device
.
Source§impl AddressStatus<Ipv6PresentAddressStatus>
impl AddressStatus<Ipv6PresentAddressStatus>
Sourcepub fn from_context_addr_v6<BC: IpDeviceBindingsContext<Ipv6, CC::DeviceId>, CC: Ipv6DeviceContext<BC> + GmpQueryHandler<Ipv6, BC>>(
core_ctx: &mut CC,
device: &CC::DeviceId,
addr: SpecifiedAddr<Ipv6Addr>,
) -> AddressStatus<Ipv6PresentAddressStatus>
pub fn from_context_addr_v6<BC: IpDeviceBindingsContext<Ipv6, CC::DeviceId>, CC: Ipv6DeviceContext<BC> + GmpQueryHandler<Ipv6, BC>>( core_ctx: &mut CC, device: &CC::DeviceId, addr: SpecifiedAddr<Ipv6Addr>, ) -> AddressStatus<Ipv6PresentAddressStatus>
/// Creates an IPv6 AddressStatus
for addr
on device
.
Trait Implementations§
Source§impl<S: Debug> Debug for AddressStatus<S>
impl<S: Debug> Debug for AddressStatus<S>
Source§impl<S: GenericOverIp<I>, I: Ip> GenericOverIp<I> for AddressStatus<S>
impl<S: GenericOverIp<I>, I: Ip> GenericOverIp<I> for AddressStatus<S>
Source§type Type = AddressStatus<<S as GenericOverIp<I>>::Type>
type Type = AddressStatus<<S as GenericOverIp<I>>::Type>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<S: PartialEq> PartialEq for AddressStatus<S>
impl<S: PartialEq> PartialEq for AddressStatus<S>
impl<S> StructuralPartialEq for AddressStatus<S>
Auto Trait Implementations§
impl<S> Freeze for AddressStatus<S>where
S: Freeze,
impl<S> RefUnwindSafe for AddressStatus<S>where
S: RefUnwindSafe,
impl<S> Send for AddressStatus<S>where
S: Send,
impl<S> Sync for AddressStatus<S>where
S: Sync,
impl<S> Unpin for AddressStatus<S>where
S: Unpin,
impl<S> UnwindSafe for AddressStatus<S>where
S: 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<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