pub struct Device { /* private fields */ }
Implementations§
Source§impl Device
impl Device
pub fn new( wlan_softmac_bridge_proxy: WlanSoftmacBridgeProxy, ethernet_rx: EthernetRx, wlan_tx: WlanTx, ) -> Device
Trait Implementations§
Source§impl DeviceOps for Device
impl DeviceOps for Device
async fn wlan_softmac_query_response( &mut self, ) -> Result<WlanSoftmacQueryResponse, Status>
async fn discovery_support(&mut self) -> Result<DiscoverySupport, Status>
async fn mac_sublayer_support(&mut self) -> Result<MacSublayerSupport, Status>
async fn security_support(&mut self) -> Result<SecuritySupport, Status>
async fn spectrum_management_support( &mut self, ) -> Result<SpectrumManagementSupport, Status>
async fn start( &mut self, ifc_bridge: ClientEnd<WlanSoftmacIfcBridgeMarker>, ethernet_tx: EthernetTx, wlan_rx: WlanRx, ) -> Result<Channel, Status>
fn deliver_eth_frame(&mut self, packet: &[u8]) -> Result<(), Status>
Source§fn send_wlan_frame(
&mut self,
buffer: ArenaStaticBox<[u8]>,
tx_flags: WlanTxInfoFlags,
async_id: Option<TraceId>,
) -> Result<(), Status>
fn send_wlan_frame( &mut self, buffer: ArenaStaticBox<[u8]>, tx_flags: WlanTxInfoFlags, async_id: Option<TraceId>, ) -> Result<(), Status>
Sends the slice corresponding to |buffer| as a 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.
async fn set_ethernet_status( &mut self, status: LinkStatus, ) -> Result<(), Status>
async fn set_channel(&mut self, channel: WlanChannel) -> Result<(), Status>
async fn start_passive_scan( &mut self, request: &WlanSoftmacBaseStartPassiveScanRequest, ) -> Result<WlanSoftmacBaseStartPassiveScanResponse, Status>
async fn start_active_scan( &mut self, request: &WlanSoftmacStartActiveScanRequest, ) -> Result<WlanSoftmacBaseStartActiveScanResponse, Status>
async fn cancel_scan( &mut self, request: &WlanSoftmacBaseCancelScanRequest, ) -> Result<(), Status>
async fn join_bss(&mut self, request: &JoinBssRequest) -> Result<(), Status>
async fn enable_beaconing( &mut self, request: WlanSoftmacBaseEnableBeaconingRequest, ) -> Result<(), Status>
async fn disable_beaconing(&mut self) -> Result<(), Status>
async fn install_key( &mut self, key_configuration: &WlanKeyConfiguration, ) -> Result<(), Status>
async fn notify_association_complete( &mut self, assoc_cfg: WlanAssociationConfig, ) -> Result<(), Status>
async fn clear_association( &mut self, request: &WlanSoftmacBaseClearAssociationRequest, ) -> Result<(), Status>
async fn update_wmm_parameters( &mut self, request: &WlanSoftmacBaseUpdateWmmParametersRequest, ) -> Result<(), Status>
fn take_mlme_event_stream(&mut self) -> Option<UnboundedReceiver<MlmeEvent>>
fn send_mlme_event(&mut self, event: MlmeEvent) -> Result<(), Error>
fn set_minstrel( &mut self, minstrel: Arc<Mutex<MinstrelRateSelector<MinstrelTimer>>>, )
fn minstrel( &mut self, ) -> Option<Arc<Mutex<MinstrelRateSelector<MinstrelTimer>>>>
fn set_ethernet_up(&mut self) -> impl Future<Output = Result<(), Status>>
fn set_ethernet_down(&mut self) -> impl Future<Output = Result<(), Status>>
fn tx_vector_idx( &mut self, frame_control: &FrameControl, peer_addr: &MacAddr, flags: WlanTxInfoFlags, ) -> TxVecIdx
Auto Trait Implementations§
impl Freeze for Device
impl !RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl !UnwindSafe for Device
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