[][src]Trait ap_kcp::KcpIo

pub trait KcpIo {
#[must_use]    pub fn send_packet<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buf: &'life1 mut Vec<u8>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn recv_packet<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buf: &'life1 mut Vec<u8>
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

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

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

Loading content...

Implementations on Foreign Types

impl KcpIo for UdpSocket[src]

Loading content...

Implementors

Loading content...