Enum netstack3_core::neighbor::EventState
source · pub enum EventState<L>where
L: LinkUnicastAddress,{
Dynamic(EventDynamicState<L>),
Static(L),
}
Expand description
Neighbor state published via events.
Note that this is not how state is held in the neighbor table itself,
see NeighborState
.
Either a dynamic state within the Neighbor Unreachability Detection (NUD) state machine, or a static entry that never expires.
Variants§
Trait Implementations§
source§impl<L> Clone for EventState<L>where
L: Clone + LinkUnicastAddress,
impl<L> Clone for EventState<L>where
L: Clone + LinkUnicastAddress,
source§fn clone(&self) -> EventState<L>
fn clone(&self) -> EventState<L>
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<L> Debug for EventState<L>where
L: Debug + LinkUnicastAddress,
impl<L> Debug for EventState<L>where
L: Debug + LinkUnicastAddress,
source§impl<L> Hash for EventState<L>where
L: Hash + LinkUnicastAddress,
impl<L> Hash for EventState<L>where
L: Hash + LinkUnicastAddress,
source§impl<L> PartialEq for EventState<L>where
L: PartialEq + LinkUnicastAddress,
impl<L> PartialEq for EventState<L>where
L: PartialEq + LinkUnicastAddress,
source§fn eq(&self, other: &EventState<L>) -> bool
fn eq(&self, other: &EventState<L>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<L> Copy for EventState<L>where
L: Copy + LinkUnicastAddress,
impl<L> Eq for EventState<L>where
L: Eq + LinkUnicastAddress,
impl<L> StructuralPartialEq for EventState<L>where
L: LinkUnicastAddress,
Auto Trait Implementations§
impl<L> Freeze for EventState<L>where
L: Freeze,
impl<L> RefUnwindSafe for EventState<L>where
L: RefUnwindSafe,
impl<L> Send for EventState<L>
impl<L> Sync for EventState<L>where
L: Sync,
impl<L> Unpin for EventState<L>where
L: Unpin,
impl<L> UnwindSafe for EventState<L>where
L: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.