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>>,
}Expand description
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/
device: Option<Vec<u8>>Wireless device identifier, used for pseudo-devices that don’t have a netdev (u64)
Implementations§
Trait Implementations§
Source§impl ParseNlAttr for Interface
impl ParseNlAttr for Interface
Source§fn parse(&mut self, handle: AttrHandle<'_, Nl80211Attr>) -> Interface
fn parse(&mut self, handle: AttrHandle<'_, Nl80211Attr>) -> Interface
Parse netlink messages returned by the nl80211 command CmdGetInterface
Source§impl PrettyFormat for Interface
impl PrettyFormat for Interface
fn pretty_format(&self) -> String
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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