pub struct DualStackIpDeviceState<BT: IpDeviceStateBindingsTypes> { /* private fields */ }
Expand description
IPv4 and IPv6 state combined.
Implementations§
Source§impl<BC: IpDeviceStateBindingsTypes + TimerContext> DualStackIpDeviceState<BC>
impl<BC: IpDeviceStateBindingsTypes + TimerContext> DualStackIpDeviceState<BC>
Sourcepub fn new<D: WeakDeviceIdentifier, A: IpAddressIdSpec, CC: CoreTimerContext<IpDeviceTimerId<Ipv6, D, A>, BC> + CoreTimerContext<IpDeviceTimerId<Ipv4, D, A>, BC>>(
bindings_ctx: &mut BC,
device_id: D,
metric: RawMetric,
) -> Self
pub fn new<D: WeakDeviceIdentifier, A: IpAddressIdSpec, CC: CoreTimerContext<IpDeviceTimerId<Ipv6, D, A>, BC> + CoreTimerContext<IpDeviceTimerId<Ipv4, D, A>, BC>>( bindings_ctx: &mut BC, device_id: D, metric: RawMetric, ) -> Self
Constructs a new DualStackIpDeviceState
for device_id
.
metric
is the default metric used by routes through this device.
Source§impl<BT: IpDeviceStateBindingsTypes> DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> DualStackIpDeviceState<BT>
Trait Implementations§
Source§impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<DefaultHopLimit<I>> for DualStackIpDeviceState<BT>
impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<DefaultHopLimit<I>> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<DefaultHopLimit<I>>
type Lock = RwLock<DefaultHopLimit<I>>
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: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpDeviceAddresses<I, BT>> for DualStackIpDeviceState<BT>
impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpDeviceAddresses<I, BT>> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<IpDeviceAddresses<I, BT>>
type Lock = RwLock<IpDeviceAddresses<I, BT>>
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: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpDeviceMulticastGroups<I, BT>> for DualStackIpDeviceState<BT>
impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpDeviceMulticastGroups<I, BT>> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<IpDeviceMulticastGroups<I, BT>>
type Lock = RwLock<IpDeviceMulticastGroups<I, BT>>
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: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpMarked<I, IpDeviceFlags>> for DualStackIpDeviceState<BT>
impl<I: IpDeviceStateIpExt, BT: IpDeviceStateBindingsTypes> OrderedLockAccess<IpMarked<I, IpDeviceFlags>> for DualStackIpDeviceState<BT>
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<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv4DeviceConfiguration> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv4DeviceConfiguration> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<Ipv4DeviceConfiguration>
type Lock = RwLock<Ipv4DeviceConfiguration>
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<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6DeviceConfiguration> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6DeviceConfiguration> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<Ipv6DeviceConfiguration>
type Lock = RwLock<Ipv6DeviceConfiguration>
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<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6NetworkLearnedParameters> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6NetworkLearnedParameters> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<Ipv6NetworkLearnedParameters>
type Lock = RwLock<Ipv6NetworkLearnedParameters>
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<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6RouteDiscoveryState<BT>> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6RouteDiscoveryState<BT>> for DualStackIpDeviceState<BT>
Source§type Lock = Mutex<Ipv6RouteDiscoveryState<BT>>
type Lock = Mutex<Ipv6RouteDiscoveryState<BT>>
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<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<RsState<BT>> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<RsState<BT>> for DualStackIpDeviceState<BT>
Source§impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<SlaacState<BT>> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<SlaacState<BT>> for DualStackIpDeviceState<BT>
Source§type Lock = Mutex<SlaacState<BT>>
type Lock = Mutex<SlaacState<BT>>
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
Auto Trait Implementations§
impl<BT> !Freeze for DualStackIpDeviceState<BT>
impl<BT> RefUnwindSafe for DualStackIpDeviceState<BT>
impl<BT> Send for DualStackIpDeviceState<BT>
impl<BT> Sync for DualStackIpDeviceState<BT>
impl<BT> Unpin for DualStackIpDeviceState<BT>
impl<BT> UnwindSafe for DualStackIpDeviceState<BT>
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