pub struct ClientMlme<D> { /* private fields */ }
Implementations§
Source§impl<D> ClientMlme<D>
impl<D> ClientMlme<D>
pub fn seq_mgr(&mut self) -> &mut SequenceManager
Source§impl<D: DeviceOps> ClientMlme<D>
impl<D: DeviceOps> ClientMlme<D>
pub async fn new( config: ClientConfig, device: D, timer: Timer<TimedEvent>, ) -> Result<Self, Error>
pub async fn set_main_channel( &mut self, channel: WlanChannel, ) -> Result<(), Status>
pub async fn on_mac_frame_rx( &mut self, frame: &[u8], rx_info: WlanRxInfo, async_id: Id, )
pub async fn handle_mlme_req(&mut self, req: MlmeRequest) -> Result<(), Error>
pub async fn handle_scan_complete(&mut self, status: Status, scan_id: u64)
pub fn on_eth_frame_tx<B: SplitByteSlice>( &mut self, bytes: B, async_id: Id, ) -> Result<(), Error>
Sourcepub async fn handle_timed_event(&mut self, event_id: EventId, event: TimedEvent)
pub async fn handle_timed_event(&mut self, event_id: EventId, event: TimedEvent)
Called when a previously scheduled TimedEvent
fired.
Return true if auto-deauth has triggered. Return false otherwise.
Trait Implementations§
Source§impl<D: DeviceOps> MlmeImpl for ClientMlme<D>
impl<D: DeviceOps> MlmeImpl for ClientMlme<D>
type Config = ClientConfig
type Device = D
type TimerEvent = TimedEvent
async fn new( config: Self::Config, device: Self::Device, timer: Timer<TimedEvent>, ) -> Result<Self, Error>
async fn handle_mlme_request(&mut self, req: MlmeRequest) -> Result<(), Error>
async fn handle_mac_frame_rx( &mut self, bytes: &[u8], rx_info: WlanRxInfo, async_id: Id, )
fn handle_eth_frame_tx( &mut self, bytes: &[u8], async_id: Id, ) -> Result<(), Error>
async fn handle_scan_complete(&mut self, status: Status, scan_id: u64)
async fn handle_timeout(&mut self, event_id: EventId, event: TimedEvent)
fn access_device(&mut self) -> &mut Self::Device
Auto Trait Implementations§
impl<D> Freeze for ClientMlme<D>where
D: Freeze,
impl<D> !RefUnwindSafe for ClientMlme<D>
impl<D> Send for ClientMlme<D>where
D: Send,
impl<D> Sync for ClientMlme<D>where
D: Sync,
impl<D> Unpin for ClientMlme<D>where
D: Unpin,
impl<D> !UnwindSafe for ClientMlme<D>
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