pub struct InterfaceAddress {
pub if_addr: IfAddr,
pub flags: AddressFlags,
}Fields§
§if_addr: IfAddr§flags: AddressFlagsImplementations§
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 duplicate 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<'de> Deserialize<'de> for InterfaceAddress
impl<'de> Deserialize<'de> for InterfaceAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for InterfaceAddress
impl Ord for InterfaceAddress
Source§impl PartialEq for InterfaceAddress
impl PartialEq for InterfaceAddress
Source§impl PartialOrd for InterfaceAddress
impl PartialOrd for InterfaceAddress
Source§impl Serialize for InterfaceAddress
impl Serialize for InterfaceAddress
impl 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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