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<Inst> AddrSubnetAndManualConfigEither<Inst>where
Inst: Instant,
impl<Inst> AddrSubnetAndManualConfigEither<Inst>where
Inst: Instant,
Sourcepub fn addr_subnet_either(&self) -> AddrSubnetEither
pub fn addr_subnet_either(&self) -> AddrSubnetEither
Extracts the AddrSubnetEither
.
Trait Implementations§
Source§impl<Instant> Debug for AddrSubnetAndManualConfigEither<Instant>where
Instant: Debug,
impl<Instant> Debug for AddrSubnetAndManualConfigEither<Instant>where
Instant: Debug,
Source§impl<Inst, I> From<AddrSubnet<I>> for AddrSubnetAndManualConfigEither<Inst>
impl<Inst, I> From<AddrSubnet<I>> for AddrSubnetAndManualConfigEither<Inst>
Source§fn from(value: AddrSubnet<I>) -> AddrSubnetAndManualConfigEither<Inst>
fn from(value: AddrSubnet<I>) -> AddrSubnetAndManualConfigEither<Inst>
Converts to this type from the input type.
Source§impl<Inst> From<AddrSubnetEither> for AddrSubnetAndManualConfigEither<Inst>where
Inst: Instant,
impl<Inst> From<AddrSubnetEither> for AddrSubnetAndManualConfigEither<Inst>where
Inst: Instant,
Source§fn from(value: AddrSubnetEither) -> AddrSubnetAndManualConfigEither<Inst>
fn from(value: AddrSubnetEither) -> AddrSubnetAndManualConfigEither<Inst>
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
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>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§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.