pub trait IPeer: Sync + Send {
fn addr(&self) -> SocketAddr;
fn is_disconnect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn send<'a, 'async_trait>(
&'a self,
buff: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>
where
'a: 'async_trait,
Self: 'async_trait;
fn send_all<'a, 'async_trait>(
&'a self,
buff: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'a: 'async_trait,
Self: 'async_trait;
fn flush<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn disconnect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}fn flush<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
fn flush<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]