pub struct Endpoint { /* private fields */ }
Expand description
Endpoint implements net.Conn. It is used to read muxed packets.
Implementations§
Trait Implementations§
source§impl Conn for Endpoint
impl Conn for Endpoint
source§fn recv<'life0, 'life1, 'async_trait>(
&'life0 self,
buf: &'life1 mut [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recv<'life0, 'life1, 'async_trait>( &'life0 self, buf: &'life1 mut [u8] ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
reads a packet of len(p) bytes from the underlying conn that are matched by the associated MuxFunc
source§fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
buf: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>( &'life0 self, buf: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
writes bytes to the underlying conn