pub trait TxClient {
    // Required method
    fn send_done(
        &self,
        buf: &'static mut [u8],
        acked: bool,
        result: Result<(), ErrorCode>,
    );
}Expand description
Client trait for when sending a packet is finished.
Required Methods§
Sourcefn send_done(
    &self,
    buf: &'static mut [u8],
    acked: bool,
    result: Result<(), ErrorCode>,
)
 
fn send_done( &self, buf: &'static mut [u8], acked: bool, result: Result<(), ErrorCode>, )
Send is complete or an error occurred during transmission.
§Arguments
buf: Buffer of the transmitted packet.acked: Set to true if the sender received an acknowledgement after transmitting. Note, this is only set on a confirmed ACK; if the transmission did not request an ACK this will be set to false.result: Status of the transmission.Ok(())when the packet was sent successfully. OnErr(), valid errors are:ErrorCode::BUSY: The channel was never clear and we could not transmit.ErrorCode::FAIL: Internal TX error occurred.