Trait tokio_hglib::UiHandler[][src]

pub trait UiHandler: Sized {
    type ReadDataResult: IntoFuture<Item = (Self, Bytes), Error = Error>;
    type ReadLineResult: IntoFuture<Item = (Self, Bytes), Error = Error>;
    type WriteOutputResult: IntoFuture<Item = Self, Error = Error>;
    type WriteErrorResult: IntoFuture<Item = Self, Error = Error>;
    fn read_data(self, len: usize) -> Self::ReadDataResult;
fn read_line(self, len: usize) -> Self::ReadLineResult;
fn write_output(self, data: Bytes) -> Self::WriteOutputResult;
fn write_error(self, data: Bytes) -> Self::WriteErrorResult; }

Callback to process data and requests received from the server.

Associated Types

Required Methods

Handles bulk input request.

Handles line input request.

Handles data received through the output channel.

Handles data received through the error channel.

Implementors