SendDatagramExt

Trait SendDatagramExt 

Source
pub trait SendDatagramExt<B: Buf> {
    type Error: Into<Box<dyn Error>>;

    // Required method
    fn send_datagram(&mut self, data: Datagram<B>) -> Result<(), Self::Error>;
}
Expand description

Extends the Connection trait for sending datagrams

See: https://www.rfc-editor.org/rfc/rfc9297

Required Associated Types§

Source

type Error: Into<Box<dyn Error>>

The error type that can occur when sending a datagram

Required Methods§

Source

fn send_datagram(&mut self, data: Datagram<B>) -> Result<(), Self::Error>

Send a datagram

Implementors§