pub enum LinkResolutionResult<A: LinkAddress, Observer> {
Resolved(A),
Pending(Observer),
}
Expand description
Specifies the link-layer address of a neighbor.
Variants§
Resolved(A)
The destination is a known neighbor with the given link-layer address.
Pending(Observer)
The destination is pending neighbor resolution.
Trait Implementations§
source§impl<A: Clone + LinkAddress, Observer: Clone> Clone for LinkResolutionResult<A, Observer>
impl<A: Clone + LinkAddress, Observer: Clone> Clone for LinkResolutionResult<A, Observer>
source§fn clone(&self) -> LinkResolutionResult<A, Observer>
fn clone(&self) -> LinkResolutionResult<A, Observer>
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<A: PartialEq + LinkAddress, Observer: PartialEq> PartialEq for LinkResolutionResult<A, Observer>
impl<A: PartialEq + LinkAddress, Observer: PartialEq> PartialEq for LinkResolutionResult<A, Observer>
source§fn eq(&self, other: &LinkResolutionResult<A, Observer>) -> bool
fn eq(&self, other: &LinkResolutionResult<A, Observer>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<A: Copy + LinkAddress, Observer: Copy> Copy for LinkResolutionResult<A, Observer>
impl<A: Eq + LinkAddress, Observer: Eq> Eq for LinkResolutionResult<A, Observer>
impl<A: LinkAddress, Observer> StructuralPartialEq for LinkResolutionResult<A, Observer>
Auto Trait Implementations§
impl<A, Observer> Freeze for LinkResolutionResult<A, Observer>
impl<A, Observer> RefUnwindSafe for LinkResolutionResult<A, Observer>where
A: Send + Eq + PartialEq + Debug + Clone + Copy + Unaligned + NoCell + IntoBytes + FromBytes + FromZeros + 'static + RefUnwindSafe,
Observer: RefUnwindSafe,
impl<A, Observer> Send for LinkResolutionResult<A, Observer>
impl<A, Observer> Sync for LinkResolutionResult<A, Observer>
impl<A, Observer> Unpin for LinkResolutionResult<A, Observer>
impl<A, Observer> UnwindSafe for LinkResolutionResult<A, Observer>where
A: Send + Eq + PartialEq + Debug + Clone + Copy + Unaligned + NoCell + IntoBytes + FromBytes + FromZeros + 'static + UnwindSafe,
Observer: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.