Struct veilid_tools::InterfaceAddress
source · pub struct InterfaceAddress { /* private fields */ }
Implementations§
source§impl InterfaceAddress
impl InterfaceAddress
pub fn new(if_addr: IfAddr, flags: AddressFlags) -> Self
pub fn if_addr(&self) -> &IfAddr
pub fn is_temporary(&self) -> bool
pub fn is_dynamic(&self) -> bool
pub fn is_preferred(&self) -> bool
Trait Implementations§
source§impl Clone for InterfaceAddress
impl Clone for InterfaceAddress
source§fn clone(&self) -> InterfaceAddress
fn clone(&self) -> InterfaceAddress
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 InterfaceAddress
impl Debug for InterfaceAddress
source§impl Ord for InterfaceAddress
impl Ord for InterfaceAddress
source§impl PartialEq for InterfaceAddress
impl PartialEq for InterfaceAddress
source§fn eq(&self, other: &InterfaceAddress) -> bool
fn eq(&self, other: &InterfaceAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InterfaceAddress
impl PartialOrd for InterfaceAddress
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 Eq for InterfaceAddress
impl StructuralPartialEq for InterfaceAddress
Auto Trait Implementations§
impl Freeze for InterfaceAddress
impl RefUnwindSafe for InterfaceAddress
impl Send for InterfaceAddress
impl Sync for InterfaceAddress
impl Unpin for InterfaceAddress
impl UnwindSafe for InterfaceAddress
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