Trait capsules_extra::net::ipv6::ipv6_send::IP6SendClient

source ·
pub trait IP6SendClient {
    // Required method
    fn send_done(&self, result: Result<(), ErrorCode>);
}
Expand description

This trait must be implemented by upper layers in order to receive the send_done callback when a transmission has completed. The upper layer must then call IP6Sender.set_client in order to receive this callback.

Required Methods§

source

fn send_done(&self, result: Result<(), ErrorCode>)

Implementors§

source§

impl<'a, T: IP6Sender<'a>> IP6SendClient for ICMP6SendStruct<'a, T>

source§

impl<'a, T: IP6Sender<'a>> IP6SendClient for MuxUdpSender<'a, T>

This function implements the IP6SendClient trait for the UDPSendStruct, and is necessary to receive callbacks from the lower (IP) layer. When the UDP layer receives this callback, it forwards it to the UDPSendClient.