capsules_extra::net::udp::udp_send

Trait UDPSendClient

Source
pub trait UDPSendClient {
    // Required method
    fn send_done(
        &self,
        result: Result<(), ErrorCode>,
        dgram: SubSliceMut<'static, u8>,
    );
}
Expand description

The send_done function in this trait is invoked after the UDPSender has completed sending the requested packet. Note that the UDPSender::set_client method must be called to set the client.

Required Methods§

Source

fn send_done( &self, result: Result<(), ErrorCode>, dgram: SubSliceMut<'static, u8>, )

Implementors§

Source§

impl UDPSendClient for UDPDriver<'_>

Source§

impl<'a, A: Alarm<'a>> UDPSendClient for MockUdp<'a, A>

Source§

impl<'a, A: Alarm<'a>> UDPSendClient for ThreadNetworkDriver<'a, A>