Trait tcpserver::IPeer[][src]

pub trait IPeer {
    fn addr(&self) -> SocketAddr;
#[must_use] fn is_disconnect<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = AResult<bool>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn send<'life0, 'async_trait, T: Deref<Target = [u8]> + Send + Sync + 'static>(
        &'life0 self,
        buff: T
    ) -> Pin<Box<dyn Future<Output = AResult<usize>> + Send + Sync + 'async_trait>>
    where
        T: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn disconnect<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

fn addr(&self) -> SocketAddr[src]

#[must_use]fn is_disconnect<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = AResult<bool>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn send<'life0, 'async_trait, T: Deref<Target = [u8]> + Send + Sync + 'static>(
    &'life0 self,
    buff: T
) -> Pin<Box<dyn Future<Output = AResult<usize>> + Send + Sync + 'async_trait>> where
    T: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn disconnect<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = AResult<()>> + Send + Sync + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl IPeer for Actor<TCPPeer>[src]

Loading content...

Implementors

Loading content...