pub struct BoundClient<'a, D> { /* private fields */ }
Implementations§
Source§impl<'a, D: DeviceOps> BoundClient<'a, D>
impl<'a, D: DeviceOps> BoundClient<'a, D>
pub fn send_auth_frame( &mut self, auth_type: AuthAlgorithmNumber, seq_num: u16, result_code: StatusCode, auth_content: &[u8], ) -> Result<(), Error>
Sourcepub fn send_open_auth_frame(&mut self) -> Result<(), Error>
pub fn send_open_auth_frame(&mut self) -> Result<(), Error>
Sends an authentication frame using Open System authentication.
Sourcepub fn send_assoc_req_frame(&mut self) -> Result<(), Error>
pub fn send_assoc_req_frame(&mut self) -> Result<(), Error>
Sends an association request frame based on device capability.
pub fn send_deauth_frame( &mut self, reason_code: ReasonCode, ) -> Result<(), Error>
Sourcepub fn send_data_frame(
&mut self,
src: MacAddr,
dst: MacAddr,
is_protected: bool,
qos_ctrl: bool,
ether_type: u16,
payload: &[u8],
async_id: Option<Id>,
) -> Result<(), Error>
pub fn send_data_frame( &mut self, src: MacAddr, dst: MacAddr, is_protected: bool, qos_ctrl: bool, ether_type: u16, payload: &[u8], async_id: Option<Id>, ) -> Result<(), Error>
Sends the given |payload| as a data frame over the air. If the caller does not pass an |async_id| to this function, then this function will generate its own |async_id| and end the trace if an error occurs.
Sourcepub fn send_eapol_frame(
&mut self,
src: MacAddr,
dst: MacAddr,
is_protected: bool,
eapol_frame: &[u8],
)
pub fn send_eapol_frame( &mut self, src: MacAddr, dst: MacAddr, is_protected: bool, eapol_frame: &[u8], )
Sends an EAPoL frame over the air and reports transmission status to SME via an MLME-EAPOL.confirm message.
pub fn send_ps_poll_frame(&mut self, aid: Aid) -> Result<(), Error>
Sourcepub async fn handle_timed_event(&mut self, event: TimedEvent, event_id: EventId)
pub async fn handle_timed_event(&mut self, event: TimedEvent, event_id: EventId)
Called when a previously scheduled TimedEvent
fired.
Sourcepub async fn on_mac_frame<B: SplitByteSlice>(
&mut self,
bytes: B,
rx_info: WlanRxInfo,
async_id: Id,
)
pub async fn on_mac_frame<B: SplitByteSlice>( &mut self, bytes: B, rx_info: WlanRxInfo, async_id: Id, )
Called when an arbitrary frame was received over the air.
pub fn on_eth_frame_tx<B: SplitByteSlice>( &mut self, frame: B, async_id: Id, ) -> Result<(), Error>
pub async fn start_connecting(&mut self)
pub async fn handle_mlme_req(&mut self, msg: MlmeRequest)
Auto Trait Implementations§
impl<'a, D> Freeze for BoundClient<'a, D>
impl<'a, D> !RefUnwindSafe for BoundClient<'a, D>
impl<'a, D> Send for BoundClient<'a, D>where
D: Send,
impl<'a, D> Sync for BoundClient<'a, D>where
D: Sync,
impl<'a, D> Unpin for BoundClient<'a, D>
impl<'a, D> !UnwindSafe for BoundClient<'a, 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