[][src]Trait tokio_hglib::UiHandler

pub trait UiHandler {
#[must_use]    pub fn read_data<'life0, 'async_trait>(
        &'life0 mut self,
        len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn read_line<'life0, 'async_trait>(
        &'life0 mut self,
        len: usize
    ) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn write_output<'life0, 'async_trait>(
        &'life0 mut self,
        data: Bytes
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn write_error<'life0, 'async_trait>(
        &'life0 mut self,
        data: Bytes
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Callback to process data and requests received from the server.

Required methods

#[must_use]pub fn read_data<'life0, 'async_trait>(
    &'life0 mut self,
    len: usize
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Handles bulk input request.

#[must_use]pub fn read_line<'life0, 'async_trait>(
    &'life0 mut self,
    len: usize
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Handles line input request.

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

Handles data received through the output channel.

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

Handles data received through the error channel.

Loading content...

Implementors

Loading content...