Trait quic_socket::QuicSocket [−][src]
pub trait QuicSocket {
fn new(addr: Option<SocketAddr>) -> Self;
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
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}