[][src]Trait engine_io_server::transport::TransportImpl

pub trait TransportImpl<R: 'static>: Send + Sync {
#[must_use]    fn open<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn close<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn discard(&self);
#[must_use] fn send<'life0, 'async_trait>(
        &'life0 mut self,
        packets: Vec<Packet>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn is_writable(&self) -> bool;
#[must_use] fn handle_request<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        request_context: &'life1 RequestContext
    ) -> Pin<Box<dyn Future<Output = RequestReply<R>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

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

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

fn discard(&self)

#[must_use]fn send<'life0, 'async_trait>(
    &'life0 mut self,
    packets: Vec<Packet>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

fn is_writable(&self) -> bool

#[must_use]fn handle_request<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    request_context: &'life1 RequestContext
) -> Pin<Box<dyn Future<Output = RequestReply<R>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<A: 'static + Adapter> TransportImpl<<A as Adapter>::Response> for Transport<A>[src]

Loading content...