pub struct StrictlyZonedAddr<A, W, Z> { /* private fields */ }
Expand description
A ZonedAddr
whose address is Zoned
iff a zone is required.
Any address whose scope can have a zone, will be the Zoned
variant. The
one exception is the loopback address, which is represented as Unzoned
.
This is because the loopback address is allowed to have, but does not
require having, a zone.
§Type Parameters
A: The base IpAddress
type.
W: The Witness
types of the A
.
Z: The zone of A
.
Implementations§
Source§impl<A, W, Z> StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> StrictlyZonedAddr<A, W, Z>
Sourcepub fn into_inner(self) -> ZonedAddr<W, Z>
pub fn into_inner(self) -> ZonedAddr<W, Z>
Convert self into the inner ZonedAddr
Sourcepub fn into_inner_without_witness(self) -> ZonedAddr<A, Z>
pub fn into_inner_without_witness(self) -> ZonedAddr<A, Z>
Convert self into the inner ZonedAddr
while discarding the witness.
Sourcepub fn new_with_zone(
addr: W,
get_zone: impl FnOnce() -> Z,
) -> StrictlyZonedAddr<A, W, Z>
pub fn new_with_zone( addr: W, get_zone: impl FnOnce() -> Z, ) -> StrictlyZonedAddr<A, W, Z>
Creates from a specified IP address and an optional zone.
If addr
requires a zone, then get_zone
will be called to provide
the zone.
§Panics
This method panics if the addr
wants a zone and get_zone
will panic
when called.
Trait Implementations§
Source§impl<A, W, Z> Clone for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Clone for StrictlyZonedAddr<A, W, Z>
Source§fn clone(&self) -> StrictlyZonedAddr<A, W, Z>
fn clone(&self) -> StrictlyZonedAddr<A, W, Z>
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, W, Z> Debug for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Debug for StrictlyZonedAddr<A, W, Z>
Source§impl<A, W, Z> Deref for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Deref for StrictlyZonedAddr<A, W, Z>
Source§impl<A, W, Z> Hash for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Hash for StrictlyZonedAddr<A, W, Z>
Source§impl<A, W, Z> PartialEq for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> PartialEq for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Copy for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Eq for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> StructuralPartialEq for StrictlyZonedAddr<A, W, Z>
Auto Trait Implementations§
impl<A, W, Z> Freeze for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> RefUnwindSafe for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Send for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Sync for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> Unpin for StrictlyZonedAddr<A, W, Z>
impl<A, W, Z> UnwindSafe for StrictlyZonedAddr<A, W, Z>
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§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>,
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.