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§
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 Hash for InterfaceAddress
impl Hash for InterfaceAddress
source§impl PartialEq for InterfaceAddress
impl PartialEq 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)