Enum netstack3_core::routes::AddableEntryEither
source · pub enum AddableEntryEither<D> {
V4(AddableEntry<Ipv4Addr, D>),
V6(AddableEntry<Ipv6Addr, D>),
}
Expand description
An IPv4 forwarding entry or an IPv6 forwarding entry.
Variants§
V4(AddableEntry<Ipv4Addr, D>)
V6(AddableEntry<Ipv6Addr, D>)
Implementations§
source§impl<D> AddableEntryEither<D>
impl<D> AddableEntryEither<D>
sourcepub fn without_gateway(
subnet: SubnetEither,
device: D,
metric: AddableMetric
) -> Self
pub fn without_gateway( subnet: SubnetEither, device: D, metric: AddableMetric ) -> Self
Creates a new AddableEntryEither
with the specified device as the
next hop.
Trait Implementations§
source§impl<D: Clone> Clone for AddableEntryEither<D>
impl<D: Clone> Clone for AddableEntryEither<D>
source§fn clone(&self) -> AddableEntryEither<D>
fn clone(&self) -> AddableEntryEither<D>
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<D: Debug> Debug for AddableEntryEither<D>
impl<D: Debug> Debug for AddableEntryEither<D>
source§impl<A: IpAddress, D> From<AddableEntry<A, D>> for AddableEntryEither<D>
impl<A: IpAddress, D> From<AddableEntry<A, D>> for AddableEntryEither<D>
source§fn from(entry: AddableEntry<A, D>) -> AddableEntryEither<D>
fn from(entry: AddableEntry<A, D>) -> AddableEntryEither<D>
Converts to this type from the input type.
source§impl<D, IpType: Ip> GenericOverIp<IpType> for AddableEntryEither<D>
impl<D, IpType: Ip> GenericOverIp<IpType> for AddableEntryEither<D>
§type Type = AddableEntryEither<D>
type Type = AddableEntryEither<D>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl<D: Hash> Hash for AddableEntryEither<D>
impl<D: Hash> Hash for AddableEntryEither<D>
source§impl<D: PartialEq> PartialEq for AddableEntryEither<D>
impl<D: PartialEq> PartialEq for AddableEntryEither<D>
source§fn eq(&self, other: &AddableEntryEither<D>) -> bool
fn eq(&self, other: &AddableEntryEither<D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<D: Copy> Copy for AddableEntryEither<D>
impl<D: Eq> Eq for AddableEntryEither<D>
impl<D> StructuralPartialEq for AddableEntryEither<D>
Auto Trait Implementations§
impl<D> Freeze for AddableEntryEither<D>where
D: Freeze,
impl<D> RefUnwindSafe for AddableEntryEither<D>where
D: RefUnwindSafe,
impl<D> Send for AddableEntryEither<D>where
D: Send,
impl<D> Sync for AddableEntryEither<D>where
D: Sync,
impl<D> Unpin for AddableEntryEither<D>where
D: Unpin,
impl<D> UnwindSafe for AddableEntryEither<D>where
D: 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.