pub enum AddrSubnetAndManualConfigEither<Instant> {
V4(AddrSubnet<Ipv4Addr>, Ipv4AddrConfig<Instant>),
V6(AddrSubnet<Ipv6Addr>, Ipv6AddrManualConfig<Instant>),
}
Expand description
An AddrSubnet together with configuration specified for it when adding it to the stack.
Variants§
V4(AddrSubnet<Ipv4Addr>, Ipv4AddrConfig<Instant>)
Variant for an Ipv4 AddrSubnet.
V6(AddrSubnet<Ipv6Addr>, Ipv6AddrManualConfig<Instant>)
Variant for an Ipv6 AddrSubnet.
Implementations§
source§impl<Instant: Instant> AddrSubnetAndManualConfigEither<Instant>
impl<Instant: Instant> AddrSubnetAndManualConfigEither<Instant>
sourcepub fn addr_subnet_either(&self) -> AddrSubnetEither
pub fn addr_subnet_either(&self) -> AddrSubnetEither
Extracts the AddrSubnetEither
.
Trait Implementations§
source§impl<Instant: Debug> Debug for AddrSubnetAndManualConfigEither<Instant>
impl<Instant: Debug> Debug for AddrSubnetAndManualConfigEither<Instant>
source§impl<Instant: Instant, I: IpAddress> From<AddrSubnet<I>> for AddrSubnetAndManualConfigEither<Instant>
impl<Instant: Instant, I: IpAddress> From<AddrSubnet<I>> for AddrSubnetAndManualConfigEither<Instant>
source§fn from(value: AddrSubnet<I>) -> Self
fn from(value: AddrSubnet<I>) -> Self
Converts to this type from the input type.
source§impl<Instant: Instant> From<AddrSubnetEither> for AddrSubnetAndManualConfigEither<Instant>
impl<Instant: Instant> From<AddrSubnetEither> for AddrSubnetAndManualConfigEither<Instant>
source§fn from(value: AddrSubnetEither) -> Self
fn from(value: AddrSubnetEither) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Instant> Freeze for AddrSubnetAndManualConfigEither<Instant>where
Instant: Freeze,
impl<Instant> RefUnwindSafe for AddrSubnetAndManualConfigEither<Instant>where
Instant: RefUnwindSafe,
impl<Instant> Send for AddrSubnetAndManualConfigEither<Instant>where
Instant: Send,
impl<Instant> Sync for AddrSubnetAndManualConfigEither<Instant>where
Instant: Sync,
impl<Instant> Unpin for AddrSubnetAndManualConfigEither<Instant>where
Instant: Unpin,
impl<Instant> UnwindSafe for AddrSubnetAndManualConfigEither<Instant>where
Instant: 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.