Struct netstack3_ip::IpStateInner
source · 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,
§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>
§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>
§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>
§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>
§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>
§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, BT>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<State<I, 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