pub(crate) struct IpWithZone<A: Borrow<Ipv6Addr> = Ipv6Addr> {
pub(crate) ip: A,
pub(crate) zone: Option<NonZero<u16>>,
}
Expand description
An IP address with a zone identifier associated with it
For minicbor serialization purposes, the zone identifier is only expressed if the IP address is link local.
Fields§
§ip: A
§zone: Option<NonZero<u16>>
Trait Implementations§
Source§impl<A: Clone + Borrow<Ipv6Addr>> Clone for IpWithZone<A>
impl<A: Clone + Borrow<Ipv6Addr>> Clone for IpWithZone<A>
Source§fn clone(&self) -> IpWithZone<A>
fn clone(&self) -> IpWithZone<A>
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<'b, C> Decode<'b, C> for IpWithZone
impl<'b, C> Decode<'b, C> for IpWithZone
Auto Trait Implementations§
impl<A> Freeze for IpWithZone<A>where
A: Freeze,
impl<A> RefUnwindSafe for IpWithZone<A>where
A: RefUnwindSafe,
impl<A> Send for IpWithZone<A>where
A: Send,
impl<A> Sync for IpWithZone<A>where
A: Sync,
impl<A> Unpin for IpWithZone<A>where
A: Unpin,
impl<A> UnwindSafe for IpWithZone<A>where
A: 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<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<T> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.