[][src]Struct nl80211::Interface

pub struct Interface {
    pub index: Option<Vec<u8>>,
    pub ssid: Option<Vec<u8>>,
    pub mac: Option<Vec<u8>>,
    pub name: Option<Vec<u8>>,
    pub frequency: Option<Vec<u8>>,
    pub channel: Option<Vec<u8>>,
    pub power: Option<Vec<u8>>,
    pub phy: Option<Vec<u8>>,
    pub device: Option<Vec<u8>>,
}

A struct representing a wifi interface

Fields

index: Option<Vec<u8>>

A netlink interface index. This index is used to fetch extra information with nl80211

ssid: Option<Vec<u8>>

Interface essid

mac: Option<Vec<u8>>

Interface MAC address

name: Option<Vec<u8>>

Interface name (u8, String)

frequency: Option<Vec<u8>>

Interface frequency of the selected channel (u32, MHz)

channel: Option<Vec<u8>>

Interface chanel

power: Option<Vec<u8>>

Interface transmit power level in signed mBm units.

phy: Option<Vec<u8>>

index of wiphy to operate on, cf. /sys/class/ieee80211//index

device: Option<Vec<u8>>

Wireless device identifier, used for pseudo-devices that don't have a netdev (u64)

Methods

impl Interface[src]

pub fn default() -> Interface[src]

pub fn get_station_info(&self) -> Result<Station, NlError>[src]

Get station info for this interface

Trait Implementations

impl PrettyFormat for Interface[src]

impl ParseNlAttr for Interface[src]

fn parse(&mut self, handle: AttrHandle<Nl80211Attr>) -> Interface[src]

Parse netlink messages returned by the nl80211 command CmdGetInterface

impl Clone for Interface[src]

impl PartialEq<Interface> for Interface[src]

impl Debug for Interface[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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