Struct nix::ifaddrs::InterfaceAddress
source · [−]pub struct InterfaceAddress {
pub interface_name: String,
pub flags: InterfaceFlags,
pub address: Option<SockaddrStorage>,
pub netmask: Option<SockaddrStorage>,
pub broadcast: Option<SockaddrStorage>,
pub destination: Option<SockaddrStorage>,
}
Expand description
Describes a single address for an interface as returned by getifaddrs
.
Fields
interface_name: String
Name of the network interface
flags: InterfaceFlags
Flags as from SIOCGIFFLAGS
ioctl
address: Option<SockaddrStorage>
Network address of this interface
netmask: Option<SockaddrStorage>
Netmask of this interface
broadcast: Option<SockaddrStorage>
Broadcast address of this interface, if applicable
destination: Option<SockaddrStorage>
Point-to-point destination address
Trait Implementations
sourceimpl Clone for InterfaceAddress
impl Clone for InterfaceAddress
sourcefn clone(&self) -> InterfaceAddress
fn clone(&self) -> InterfaceAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InterfaceAddress
impl Debug for InterfaceAddress
sourceimpl Hash for InterfaceAddress
impl Hash for InterfaceAddress
sourceimpl PartialEq<InterfaceAddress> for InterfaceAddress
impl PartialEq<InterfaceAddress> for InterfaceAddress
sourcefn eq(&self, other: &InterfaceAddress) -> bool
fn eq(&self, other: &InterfaceAddress) -> bool
impl Eq for InterfaceAddress
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more