pub struct IpStateInner<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpStateBindingsTypes> { /* private fields */ }
Expand description
The inner state for the IP layer for IP version I
.
Implementations§
Source§impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpStateBindingsTypes> IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpStateBindingsTypes> IpStateInner<I, D, BT>
Sourcepub fn counters(&self) -> &IpCounters<I>
pub fn counters(&self) -> &IpCounters<I>
Gets the IP counters.
Sourcepub fn multicast_forwarding_counters(&self) -> &MulticastForwardingCounters<I>
pub fn multicast_forwarding_counters(&self) -> &MulticastForwardingCounters<I>
Gets the multicast forwarding counters.
Sourcepub fn raw_ip_socket_counters(&self) -> &RawIpSocketCounters<I>
pub fn raw_ip_socket_counters(&self) -> &RawIpSocketCounters<I>
Gets the aggregate raw IP socket counters.
Sourcepub fn main_table_id(&self) -> &RoutingTableId<I, D>
pub fn main_table_id(&self) -> &RoutingTableId<I, D>
Gets the main table ID.
Trait Implementations§
Source§impl<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> AsRef<IpStateInner<Ipv4, StrongDeviceId, BT>> for Ipv4State<StrongDeviceId, BT>
impl<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> AsRef<IpStateInner<Ipv4, StrongDeviceId, BT>> for Ipv4State<StrongDeviceId, BT>
Source§fn as_ref(&self) -> &IpStateInner<Ipv4, StrongDeviceId, BT>
fn as_ref(&self) -> &IpStateInner<Ipv4, StrongDeviceId, BT>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> AsRef<IpStateInner<Ipv6, StrongDeviceId, BT>> for Ipv6State<StrongDeviceId, BT>
impl<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> AsRef<IpStateInner<Ipv6, StrongDeviceId, BT>> for Ipv6State<StrongDeviceId, BT>
Source§fn as_ref(&self) -> &IpStateInner<Ipv6, StrongDeviceId, BT>
fn as_ref(&self) -> &IpStateInner<Ipv6, StrongDeviceId, BT>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpStateBindingsTypes, IpType> GenericOverIp<IpType> for IpStateInner<I, D, BT>where
IpType: IpLayerIpExt + Ip,
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpStateBindingsTypes, IpType> GenericOverIp<IpType> for IpStateInner<I, D, BT>where
IpType: IpLayerIpExt + Ip,
Source§type Type = IpStateInner<IpType, D, BT>
type Type = IpStateInner<IpType, D, BT>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<HashMap<RoutingTableId<I, D>, Primary<RwLock<RoutingTable<I, D>>>>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<HashMap<RoutingTableId<I, D>, Primary<RwLock<RoutingTable<I, D>>>>> for IpStateInner<I, D, BT>
Source§type Lock = Mutex<HashMap<RoutingTableId<I, D>, Primary<RwLock<RoutingTable<I, D>>>>>
type Lock = Mutex<HashMap<RoutingTableId<I, D>, Primary<RwLock<RoutingTable<I, D>>>>>
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: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<IpPacketFragmentCache<I, BT>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<IpPacketFragmentCache<I, BT>> for IpStateInner<I, D, BT>
Source§type Lock = Mutex<IpPacketFragmentCache<I, BT>>
type Lock = Mutex<IpPacketFragmentCache<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: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<MulticastForwardingState<I, D, BT>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<MulticastForwardingState<I, D, BT>> for IpStateInner<I, D, BT>
Source§type Lock = RwLock<MulticastForwardingState<I, D, BT>>
type Lock = RwLock<MulticastForwardingState<I, D, 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: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<PmtuCache<I, BT>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<PmtuCache<I, BT>> for IpStateInner<I, D, BT>
Source§impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<RawIpSocketMap<I, <D as StrongDeviceIdentifier>::Weak, BT>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<RawIpSocketMap<I, <D as StrongDeviceIdentifier>::Weak, BT>> for IpStateInner<I, D, BT>
Source§type Lock = RwLock<RawIpSocketMap<I, <D as StrongDeviceIdentifier>::Weak, BT>>
type Lock = RwLock<RawIpSocketMap<I, <D as StrongDeviceIdentifier>::Weak, 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: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<RulesTable<I, D>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<RulesTable<I, D>> for IpStateInner<I, D, BT>
Source§type Lock = RwLock<RulesTable<I, D>>
type Lock = RwLock<RulesTable<I, D>>
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: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<State<I, <I as IpAddressIdExt>::Weak<BT>, BT>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<State<I, <I as IpAddressIdExt>::Weak<BT>, BT>> for IpStateInner<I, D, BT>
Auto Trait Implementations§
impl<I, D, BT> !Freeze for IpStateInner<I, D, BT>
impl<I, D, BT> RefUnwindSafe for IpStateInner<I, D, BT>
impl<I, D, BT> Send for IpStateInner<I, D, BT>where
<I as IpLayerIpExt>::RxCounters: Send,
<I as MulticastRouteIpExt>::SourceAddress: Send,
<I as MulticastRouteIpExt>::DestinationAddress: Send,
<BT as InstantBindingsTypes>::AtomicInstant: Send,
<BT as FilterBindingsTypes>::DeviceClass: Sync + Send,
impl<I, D, BT> Sync for IpStateInner<I, D, BT>where
<I as IpLayerIpExt>::RxCounters: Sync,
<I as MulticastRouteIpExt>::SourceAddress: Send + Sync,
<I as MulticastRouteIpExt>::DestinationAddress: Send + Sync,
<BT as InstantBindingsTypes>::AtomicInstant: Send + Sync,
<BT as FilterBindingsTypes>::DeviceClass: Sync + Send,
impl<I, D, BT> Unpin for IpStateInner<I, D, BT>where
<I as IpLayerIpExt>::RxCounters: Unpin,
I: Unpin,
<BT as TimerBindingsTypes>::Timer: Unpin,
<I as Ip>::Addr: Unpin,
<BT as InstantBindingsTypes>::Instant: Unpin,
<BT as FilterBindingsTypes>::DeviceClass: Unpin,
<I as IpProtoExt>::Proto: Unpin,
impl<I, D, BT> UnwindSafe for IpStateInner<I, D, 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