pub struct Readline { /* private fields */ }
Expand description

Structure that contains all the data necessary to read and write lines in an asyncronous manner

Implementations

Create new Readline

Set max history length

Flush terminal

Polling function for readline, manages all input and output.

source

pub async fn add_history_entry(&mut self, entry: String) -> Option<()>

Add history entry asyncronously, should resolve immediately unless sending too many history entries

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.