Trait salvo_core::proto::quic::SendDatagramExt

source ·
pub trait SendDatagramExt<B>
where B: Buf,
{ type Error: Into<Box<dyn Error>>; // Required method fn send_datagram(&mut self, data: Datagram<B>) -> Result<(), Self::Error>; }
Available on crate feature quinn only.
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§