[−][src]Trait tokio_hglib::UiHandler
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]
&'life0 mut self,
len: usize
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
&'life0 mut self,
len: usize
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
&'life0 mut self,
data: Bytes
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
&'life0 mut self,
data: Bytes
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Handles data received through the error channel.