Struct netlink_wi::NlSocket
source · pub struct NlSocket { /* private fields */ }
Expand description
Netlink socket.
Implementations§
source§impl NlSocket
impl NlSocket
sourcepub fn connect() -> Result<Self, NlError<GenlId, Genlmsghdr<CtrlCmd, CtrlAttr>>>
pub fn connect() -> Result<Self, NlError<GenlId, Genlmsghdr<CtrlCmd, CtrlAttr>>>
Connect netlink socket.
pub fn list_interfaces(&mut self) -> Result<Vec<WirelessInterface>, NlError>
pub fn set_interface( &mut self, if_index: u32, if_type: InterfaceType ) -> Result<(), NlError>
pub fn set_monitor_flags( &mut self, if_index: u32, flags: Vec<MonitorFlags> ) -> Result<(), NlError>
pub fn set_channel( &mut self, if_index: u32, freq: u32, width: ChannelWidth ) -> Result<(), NlError>
pub fn list_stations( &mut self, if_index: u32 ) -> Result<Vec<WirelessStation>, NlError>
pub fn list_physical_devices(&mut self) -> Result<Vec<PhysicalDevice>, NlError>
pub fn get_regulatory_domain( &mut self ) -> Result<Vec<RegulatoryDomain>, NlError>
Auto Trait Implementations§
impl RefUnwindSafe for NlSocket
impl Send for NlSocket
impl Sync for NlSocket
impl Unpin for NlSocket
impl UnwindSafe for NlSocket
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