Struct nix::ifaddrs::InterfaceAddress
pub struct InterfaceAddress {
pub interface_name: String,
pub flags: InterfaceFlags,
pub address: Option<SockAddr>,
pub netmask: Option<SockAddr>,
pub broadcast: Option<SockAddr>,
pub destination: Option<SockAddr>,
}Documentation
Describes a single address for an interface as returned by getifaddrs.
Fields
pub interface_name: StringName of the network interface
pub flags: InterfaceFlagsFlags as from SIOCGIFFLAGS ioctl
Trait Implementations
impl Clone for InterfaceAddress
fn clone(&Self) -> InterfaceAddressimpl Debug for InterfaceAddress
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Eq for InterfaceAddressimpl Hash for InterfaceAddress
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl PartialEq<InterfaceAddress> for InterfaceAddress
fn eq(&Self, other: &InterfaceAddress) -> boolfn ne(&Self, other: &InterfaceAddress) -> boolimpl StructuralEq for InterfaceAddressimpl StructuralPartialEq for InterfaceAddressAuto Trait Implementations
impl RefUnwindSafe for InterfaceAddressimpl Send for InterfaceAddressimpl Sync for InterfaceAddressimpl Unpin for InterfaceAddressimpl UnwindSafe for InterfaceAddressBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T