pub struct Address<I: FieldInterests> {
pub addr: Subnet,
pub valid_until: <<ValidUntilInterest as FieldSpec>::Interest<I> as MaybeInterest<<ValidUntilInterest as FieldSpec>::Present>>::Ty,
pub preferred_lifetime_info: <<PreferredLifetimeInfoInterest as FieldSpec>::Interest<I> as MaybeInterest<<PreferredLifetimeInfoInterest as FieldSpec>::Present>>::Ty,
pub assignment_state: AddressAssignmentState,
}
Expand description
An address and its properties.
Fields§
§addr: Subnet
The address and prefix length.
valid_until: <<ValidUntilInterest as FieldSpec>::Interest<I> as MaybeInterest<<ValidUntilInterest as FieldSpec>::Present>>::Ty
The time after which the address will no longer be valid.
Its value must be greater than 0. A value of zx.time.INFINITE indicates that the address will always be valid.
preferred_lifetime_info: <<PreferredLifetimeInfoInterest as FieldSpec>::Interest<I> as MaybeInterest<<PreferredLifetimeInfoInterest as FieldSpec>::Present>>::Ty
Preferred lifetime information.
assignment_state: AddressAssignmentState
The address’s assignment state.
Trait Implementations§
Source§impl<I: FieldInterests> Clone for Address<I>
impl<I: FieldInterests> Clone for Address<I>
Source§impl<I: FieldInterests> Debug for Address<I>
impl<I: FieldInterests> Debug for Address<I>
Source§impl<I: FieldInterests> Hash for Address<I>
impl<I: FieldInterests> Hash for Address<I>
Source§impl<I: FieldInterests> PartialEq for Address<I>
impl<I: FieldInterests> PartialEq for Address<I>
impl<I: FieldInterests> Eq for Address<I>
Auto Trait Implementations§
impl<I> Freeze for Address<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Freeze,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Freeze,
impl<I> RefUnwindSafe for Address<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: RefUnwindSafe,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: RefUnwindSafe,
impl<I> Send for Address<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Send,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Send,
impl<I> Sync for Address<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Sync,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Sync,
impl<I> Unpin for Address<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Unpin,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Unpin,
impl<I> UnwindSafe for Address<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: UnwindSafe,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: 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
)