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: String
Name of the network interface
pub flags: InterfaceFlags
Flags as from SIOCGIFFLAGS
ioctl
Trait Implementations
impl Clone for InterfaceAddress
fn clone(&Self) -> InterfaceAddress
impl Debug for InterfaceAddress
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for InterfaceAddress
impl Hash for InterfaceAddress
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl PartialEq<InterfaceAddress> for InterfaceAddress
fn eq(&Self, other: &InterfaceAddress) -> bool
fn ne(&Self, other: &InterfaceAddress) -> bool
impl StructuralEq for InterfaceAddress
impl StructuralPartialEq for InterfaceAddress
Auto Trait Implementations
impl RefUnwindSafe for InterfaceAddress
impl Send for InterfaceAddress
impl Sync for InterfaceAddress
impl Unpin for InterfaceAddress
impl UnwindSafe for InterfaceAddress
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T