pub enum EthernetTxRequest {
Transfer {
payload: EthernetTxTransferRequest,
responder: EthernetTxTransferResponder,
},
}
Expand description
Protocol for sending an Ethernet frame from the wlansoftmac driver to the bridged 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.
§Safety
The complete_borrowed_operation
field must be a function pointer of the type
void ()(eth::BorrowedOperation<>, zx_status_t) where the first argument
is the value of borrowed_operation
field.
Calling complete_borrowed_operation
will result in calling
eth::BorrowedOperation<>::Complete()
to release ownership of the packet. This
must be called exactly once. Failing to call complete_borrowed_operation
will leak memory, and calling more than once will result in use-after-free.
Variants§
Transfer
Implementations§
Source§impl EthernetTxRequest
impl EthernetTxRequest
pub fn into_transfer( self, ) -> Option<(EthernetTxTransferRequest, EthernetTxTransferResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL