[][src]Trait juno::connection::BaseConnection

pub trait BaseConnection {
#[must_use]    fn setup_connection<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn close_connection<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn send<'life0, 'async_trait>(
        &'life0 mut self,
        buffer: Buffer
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
fn get_data_receiver(&mut self) -> UnboundedReceiver<Buffer>;
fn clone_write_sender(&self) -> UnboundedSender<Buffer>; }

Required methods

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

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

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

fn get_data_receiver(&mut self) -> UnboundedReceiver<Buffer>

fn clone_write_sender(&self) -> UnboundedSender<Buffer>

Loading content...

Implementors

impl BaseConnection for InetSocketConnection[src]

impl BaseConnection for UnixSocketConnection[src]

Loading content...