pub struct WlantapPhySynchronousProxy { /* private fields */ }
Implementations§
Source§impl WlantapPhySynchronousProxy
impl WlantapPhySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<WlantapPhyEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<WlantapPhyEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn shutdown(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
pub fn shutdown(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
Shutdown the phy device so that it does not respond to any further calls. Once shutdown, there is no way to restart the device. It can only be called at the end of a test.
Sourcepub fn rx(&self, data: &[u8], info: &WlanRxInfo) -> Result<(), Error>
pub fn rx(&self, data: &[u8], info: &WlanRxInfo) -> Result<(), Error>
The device “receives” a frame “over the air” and pass it up to driver.
Sourcepub fn report_tx_result(&self, txr: &WlanTxResult) -> Result<(), Error>
pub fn report_tx_result(&self, txr: &WlanTxResult) -> Result<(), Error>
For rate selection (Minstrel), the device’s last frame transmission is a success/failure, with a certain number of retries.
pub fn scan_complete(&self, scan_id: u64, status: i32) -> Result<(), Error>
Trait Implementations§
Source§impl Debug for WlantapPhySynchronousProxy
impl Debug for WlantapPhySynchronousProxy
Source§impl SynchronousProxy for WlantapPhySynchronousProxy
impl SynchronousProxy for WlantapPhySynchronousProxy
Source§type Proxy = WlantapPhyProxy
type Proxy = WlantapPhyProxy
The async proxy for the same protocol.
Source§type Protocol = WlantapPhyMarker
type Protocol = WlantapPhyMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for WlantapPhySynchronousProxy
impl RefUnwindSafe for WlantapPhySynchronousProxy
impl Send for WlantapPhySynchronousProxy
impl Sync for WlantapPhySynchronousProxy
impl Unpin for WlantapPhySynchronousProxy
impl UnwindSafe for WlantapPhySynchronousProxy
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