pub struct Interface {
pub id: ID,
pub support_mode: Vec<Mode>,
}Fields§
§id: ID§support_mode: Vec<Mode>Implementations§
Source§impl Interface
impl Interface
pub async fn set_mode(&self, mode: Mode) -> WiFiResult
pub async fn set_channel( &self, channel: usize, band_width: Option<BandWidth>, second: Option<SecondChannel>, ) -> WiFiResult
pub async fn set_frequency( &self, freq_mhz: usize, band_width: Option<BandWidth>, second: Option<SecondChannel>, ) -> WiFiResult
pub async fn ifup(&self) -> WiFiResult
pub async fn ifdown(&self) -> WiFiResult
Trait Implementations§
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