[][src]Struct system_configuration::network_configuration::SCNetworkInterface

pub struct SCNetworkInterface(_);

Represents a network interface.

See SCNetworkInterfaceRef and its methods for details.

Implementations

impl SCNetworkInterface[src]

pub fn interface_type(&self) -> Option<SCNetworkInterfaceType>[src]

Get type of the network interface, if the type is recognized, returns None otherwise.

See SCNetworkInterfaceGetInterfaceType for details.

pub fn interface_type_string(&self) -> Option<CFString>[src]

Returns the raw interface type identifier.

See SCNetworkInterfaceGetInterfaceType for details.

pub fn bsd_name(&self) -> Option<CFString>[src]

Returns the BSD name for the interface, such as en0.

See SCNetworkInterfaceGetBSDName for details.

pub fn display_name(&self) -> Option<CFString>[src]

Returns the localized display name for the interface.

See SCNetworkInterfaceGetLocalizedDisplayName for details.

Trait Implementations

impl Clone for SCNetworkInterface[src]

impl ConcreteCFType for SCNetworkInterface[src]

impl Drop for SCNetworkInterface[src]

impl Eq for SCNetworkInterface[src]

impl PartialEq<SCNetworkInterface> for SCNetworkInterface[src]

impl TCFType for SCNetworkInterface[src]

type Ref = SCNetworkInterfaceRef

The reference type wrapped inside this type.

impl<'a> ToVoid<SCNetworkInterface> for &'a SCNetworkInterface[src]

impl ToVoid<SCNetworkInterface> for SCNetworkInterface[src]

impl ToVoid<SCNetworkInterface> for SCNetworkInterfaceRef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromMutVoid for T where
    T: TCFType
[src]

impl<T> FromVoid for T where
    T: TCFType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.