pub enum FrameSenderRequest {
WlanTx {
payload: FrameSenderWlanTxRequest,
responder: FrameSenderWlanTxResponder,
},
EthernetRx {
payload: FrameSenderEthernetRxRequest,
responder: FrameSenderEthernetRxResponder,
},
}
Expand description
Protocol for sending Ethernet and WLAN frames from the bridged wlansoftmac driver to the wlansoftmac driver.
§Experimental
This protocol is implemented as a foreign function interface (FFI) between the wlansoftmac driver and the bridged driver solely to improve the performance of processing data frames through the wlan-mlme library.
By using an FFI, messages through this protocol never enter a FIDL channel and thus do not incur the cost of the associated system calls Empirically, we observed implementing this protocol as an FFI saves on the order of ~500µs per frame processed when compared to implementing this protocol with a FIDL channel.
Variants§
Implementations§
source§impl FrameSenderRequest
impl FrameSenderRequest
pub fn into_wlan_tx( self ) -> Option<(FrameSenderWlanTxRequest, FrameSenderWlanTxResponder)>
pub fn into_ethernet_rx( self ) -> Option<(FrameSenderEthernetRxRequest, FrameSenderEthernetRxResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameSenderRequest
impl !RefUnwindSafe for FrameSenderRequest
impl Send for FrameSenderRequest
impl Sync for FrameSenderRequest
impl Unpin for FrameSenderRequest
impl !UnwindSafe for FrameSenderRequest
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