Trait quic_socket::QuicSocket [−][src]
pub trait QuicSocket {
fn new<'async_trait>(
addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where
Self: 'async_trait;
fn send<'life0, 'async_trait>(
&'life0 mut self,
payload: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn recv<'life0, 'async_trait>(
&'life0 mut self,
buf: BytesMut
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}