[][src]Trait termion::input::TermRead

pub trait TermRead {
    fn events(self) -> Events<Self>

Notable traits for Events<R>

impl<R: Read> Iterator for Events<R> type Item = Result<Event, Error>;

    where
        Self: Sized
;
fn keys(self) -> Keys<Self>

Notable traits for Keys<R>

impl<R: Read> Iterator for Keys<R> type Item = Result<Key, Error>;

    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<Self>

Notable traits for Events<R>

impl<R: Read> Iterator for Events<R> type Item = Result<Event, Error>;
where
    Self: Sized
[src]

An iterator over input events.

fn keys(self) -> Keys<Self>

Notable traits for Keys<R>

impl<R: Read> Iterator for Keys<R> type Item = Result<Key, Error>;
where
    Self: Sized
[src]

An iterator over key inputs.

fn read_line(&mut self) -> Result<Option<String>>[src]

Read a line.

EOT and ETX will abort the prompt, returning None. Newline or carriage return will complete the input.

Loading content...

Provided methods

fn read_passwd<W: Write>(&mut self, writer: &mut W) -> Result<Option<String>>[src]

Read a password.

EOT and ETX will abort the prompt, returning None. Newline or carriage return will complete the input.

Loading content...

Implementors

impl<R: Read + TermReadEventsAndRaw> TermRead for R[src]

Loading content...