Trait termion::input::TermRead
[−]
[src]
pub trait TermRead { fn events(self) -> Events<Bytes<Self>> where Self: Sized; fn keys(self) -> Keys<Bytes<Self>> where Self: Sized; fn read_line(&mut self) -> Result<Option<String>>; fn read_passwd<W: Write>(&mut self, writer: &mut W) -> Result<Option<String>> { ... } }
Extension to Read
trait.
Required Methods
fn events(self) -> Events<Bytes<Self>> where Self: Sized
An iterator over input events.
fn keys(self) -> Keys<Bytes<Self>> where Self: Sized
An iterator over key inputs.
fn read_line(&mut self) -> Result<Option<String>>
Read a line.
EOT and ETX will abort the prompt, returning None
. Newline or carriage return will
complete the input.
Provided Methods
fn read_passwd<W: Write>(&mut self, writer: &mut W) -> Result<Option<String>>
Read a password.
EOT and ETX will abort the prompt, returning None
. Newline or carriage return will
complete the input.
Implementors
impl<R: Read> TermRead for R