pub struct IpAddressData<I: IpDeviceStateIpExt, Inst: Instant> {
pub flags: IpAddressFlags,
pub config: Option<I::AddressConfig<Inst>>,
}
Expand description
The state associated with an IP device address.
Fields§
§flags: IpAddressFlags
The address’ flags.
config: Option<I::AddressConfig<Inst>>
The address’ configuration. None
when the address is being removed.
Implementations§
Source§impl<I: IpDeviceStateIpExt, Inst: Instant> IpAddressData<I, Inst>
impl<I: IpDeviceStateIpExt, Inst: Instant> IpAddressData<I, Inst>
Sourcepub fn should_perform_dad(&self) -> bool
pub fn should_perform_dad(&self) -> bool
Return whether DAD should be performed for this address.
Trait Implementations§
Source§impl<I: Clone + IpDeviceStateIpExt, Inst: Clone + Instant> Clone for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: Clone,
impl<I: Clone + IpDeviceStateIpExt, Inst: Clone + Instant> Clone for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: Clone,
Source§fn clone(&self) -> IpAddressData<I, Inst>
fn clone(&self) -> IpAddressData<I, Inst>
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<I: Debug + IpDeviceStateIpExt, Inst: Debug + Instant> Debug for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: Debug,
impl<I: Debug + IpDeviceStateIpExt, Inst: Debug + Instant> Debug for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: Debug,
Source§impl<I: IpDeviceStateIpExt, Inst: Instant> Inspectable for IpAddressData<I, Inst>
impl<I: IpDeviceStateIpExt, Inst: Instant> Inspectable for IpAddressData<I, Inst>
Source§impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpAddressData<I, <BT as InstantBindingsTypes>::Instant>> for IpAddressEntry<I, BT>
impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpAddressData<I, <BT as InstantBindingsTypes>::Instant>> for IpAddressEntry<I, BT>
Source§type Lock = RwLock<IpAddressData<I, <BT as InstantBindingsTypes>::Instant>>
type Lock = RwLock<IpAddressData<I, <BT as InstantBindingsTypes>::Instant>>
The lock type that observes ordering. Read more
Source§fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
Returns a borrow to the order-aware lock. Read more
Source§impl<I: PartialEq + IpDeviceStateIpExt, Inst: PartialEq + Instant> PartialEq for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: PartialEq,
impl<I: PartialEq + IpDeviceStateIpExt, Inst: PartialEq + Instant> PartialEq for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: PartialEq,
impl<I: Copy + IpDeviceStateIpExt, Inst: Copy + Instant> Copy for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: Copy,
impl<I: Eq + IpDeviceStateIpExt, Inst: Eq + Instant> Eq for IpAddressData<I, Inst>where
I::AddressConfig<Inst>: Eq,
impl<I: IpDeviceStateIpExt, Inst: Instant> StructuralPartialEq for IpAddressData<I, Inst>
Auto Trait Implementations§
impl<I, Inst> Freeze for IpAddressData<I, Inst>
impl<I, Inst> RefUnwindSafe for IpAddressData<I, Inst>
impl<I, Inst> Send for IpAddressData<I, Inst>
impl<I, Inst> Sync for IpAddressData<I, Inst>
impl<I, Inst> Unpin for IpAddressData<I, Inst>
impl<I, Inst> UnwindSafe for IpAddressData<I, Inst>
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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
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