Struct veilid_tools::AddressFlags
source · pub struct AddressFlags {
pub is_dynamic: bool,
pub is_temporary: bool,
pub is_preferred: bool,
}
Expand description
Some of the flags associated with an address.
Fields§
§is_dynamic: bool
§is_temporary: bool
§is_preferred: bool
Trait Implementations§
source§impl Clone for AddressFlags
impl Clone for AddressFlags
source§fn clone(&self) -> AddressFlags
fn clone(&self) -> AddressFlags
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 Debug for AddressFlags
impl Debug for AddressFlags
source§impl Default for AddressFlags
impl Default for AddressFlags
source§fn default() -> AddressFlags
fn default() -> AddressFlags
Returns the “default value” for a type. Read more
source§impl Hash for AddressFlags
impl Hash for AddressFlags
source§impl Ord for AddressFlags
impl Ord for AddressFlags
source§fn cmp(&self, other: &AddressFlags) -> Ordering
fn cmp(&self, other: &AddressFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AddressFlags
impl PartialEq for AddressFlags
source§fn eq(&self, other: &AddressFlags) -> bool
fn eq(&self, other: &AddressFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AddressFlags
impl PartialOrd for AddressFlags
source§fn partial_cmp(&self, other: &AddressFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AddressFlags
impl Eq for AddressFlags
impl StructuralPartialEq for AddressFlags
Auto Trait Implementations§
impl Freeze for AddressFlags
impl RefUnwindSafe for AddressFlags
impl Send for AddressFlags
impl Sync for AddressFlags
impl Unpin for AddressFlags
impl UnwindSafe for AddressFlags
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> CmpAssign for Twhere
T: Ord,
impl<T> CmpAssign for Twhere
T: Ord,
fn min_assign(&mut self, other: T)
fn max_assign(&mut self, other: T)
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more