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, 'life1, 'async_trait>(
&'life0 mut self,
buf: &'life1 mut [u8]
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}