Struct nix::ifaddrs::InterfaceAddress [−][src]
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>, }
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<SockAddr>
Network address of this interface
netmask: Option<SockAddr>
Netmask of this interface
broadcast: Option<SockAddr>
Broadcast address of this interface, if applicable
destination: Option<SockAddr>
Point-to-point destination address
Trait Implementations
impl Clone for InterfaceAddress
[src]
impl Clone for InterfaceAddress
[src]fn clone(&self) -> InterfaceAddress
[src]
fn clone(&self) -> InterfaceAddress
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for InterfaceAddress
[src]
impl Debug for InterfaceAddress
[src]impl Hash for InterfaceAddress
[src]
impl Hash for InterfaceAddress
[src]impl PartialEq<InterfaceAddress> for InterfaceAddress
[src]
impl PartialEq<InterfaceAddress> for InterfaceAddress
[src]fn eq(&self, other: &InterfaceAddress) -> bool
[src]
fn eq(&self, other: &InterfaceAddress) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &InterfaceAddress) -> bool
[src]
fn ne(&self, other: &InterfaceAddress) -> bool
[src]This method tests for !=
.
impl Eq for InterfaceAddress
[src]
impl StructuralEq for InterfaceAddress
[src]
impl StructuralPartialEq for InterfaceAddress
[src]
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,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more