Trait tcpclient::SocketClientTrait[][src]

pub trait SocketClientTrait {
    #[must_use]
    fn send<'life0, 'async_trait, T: Deref<Target = [u8]> + Send + Sync + 'static>(
        &'life0 self,
        buff: T
    ) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + '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 = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

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

Loading content...

Implementations on Foreign Types

impl SocketClientTrait for Actor<TcpClient>[src]

Loading content...

Implementors

Loading content...