#[non_exhaustive]pub struct Interface {
pub index: Option<i32>,
pub ssid: Option<Vec<u8>>,
pub mac: Option<Vec<u8>>,
pub name: Option<Vec<u8>>,
pub frequency: Option<u32>,
pub channel: Option<u32>,
pub power: Option<u32>,
pub phy: Option<u32>,
pub device: Option<u64>,
}Expand description
A struct representing a wifi interface
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: Option<i32>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<u32>Interface frequency of the selected channel (MHz)
channel: Option<u32>Interface chanel
power: Option<u32>Interface transmit power level in signed mBm units.
phy: Option<u32>index of wiphy to operate on, cf. /sys/class/ieee80211/
device: Option<u64>Wireless device identifier, used for pseudo-devices that don’t have a netdev
Trait Implementations§
Source§impl TryFrom<AttrHandle<'_, GenlBuffer<Nl80211Attr, Buffer>, Nlattr<Nl80211Attr, Buffer>>> for Interface
impl TryFrom<AttrHandle<'_, GenlBuffer<Nl80211Attr, Buffer>, Nlattr<Nl80211Attr, Buffer>>> for Interface
impl Eq for Interface
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