[][src]Trait async_protocol::AsyncTransport

pub trait AsyncTransport {
#[must_use]    pub fn process_data<'life0, 'life1, 'life2, 'async_trait, R: AsyncRead + Send + Unpin>(
        &'life0 mut self,
        read: &'life1 mut R,
        settings: &'life2 Settings
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        R: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn receive_raw_packet<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn send_raw_packet<'life0, 'life1, 'life2, 'life3, 'async_trait, W: AsyncWrite + Send + Unpin>(
        &'life0 mut self,
        write: &'life1 mut W,
        packet: &'life2 [u8],
        settings: &'life3 Settings
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        W: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]pub fn process_data<'life0, 'life1, 'life2, 'async_trait, R: AsyncRead + Send + Unpin>(
    &'life0 mut self,
    read: &'life1 mut R,
    settings: &'life2 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    R: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn receive_raw_packet<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]pub fn send_raw_packet<'life0, 'life1, 'life2, 'life3, 'async_trait, W: AsyncWrite + Send + Unpin>(
    &'life0 mut self,
    write: &'life1 mut W,
    packet: &'life2 [u8],
    settings: &'life3 Settings
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    W: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl Transport for Simple[src]

Loading content...