pub trait TxClient {
// Required method
fn send_done(
&self,
spi_buf: &'static mut [u8],
acked: bool,
result: Result<(), ErrorCode>,
);
}Expand description
Trait to be implemented by any user of the IEEE 802.15.4 device that transmits frames. Contains a callback through which the static mutable reference to the frame buffer is returned to the client.
Required Methods§
Sourcefn send_done(
&self,
spi_buf: &'static mut [u8],
acked: bool,
result: Result<(), ErrorCode>,
)
fn send_done( &self, spi_buf: &'static mut [u8], acked: bool, result: Result<(), ErrorCode>, )
When transmission is complete or fails, return the buffer used for
transmission to the client. result indicates whether or not
the transmission was successful.
spi_buf: The buffer used to contain the transmitted frame is returned to the client here.acked: Whether the transmission was acknowledged.result: This isOk(())if the frame was transmitted, otherwise an error occurred in the transmission pipeline.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".