Struct linefeed::memory::MemoryReadGuard
[−]
[src]
pub struct MemoryReadGuard<'a>(_);
Holds the lock on read operations of a MemoryTerminal
.
Trait Implementations
impl<'a> TerminalReader<MemoryTerminal> for MemoryReadGuard<'a>
[src]
fn wait_for_input(&mut self, _timeout: Option<Duration>) -> Result<bool>
[src]
Waits timeout
for user input. If timeout
is None
, waits indefinitely. Read more
fn prepare(
&mut self,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
[src]
&mut self,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
Prepares the terminal for line reading and editing operations. Read more
unsafe fn prepare_with_lock(
&mut self,
_lock: &mut TerminalWriter<MemoryTerminal>,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
[src]
&mut self,
_lock: &mut TerminalWriter<MemoryTerminal>,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
Like prepare
, but called when the write lock is already held. Read more
fn restore(&mut self, _state: ()) -> Result<()>
[src]
Restores the terminal state using the given state data.
unsafe fn restore_with_lock(
&mut self,
_lock: &mut TerminalWriter<MemoryTerminal>,
_state: ()
) -> Result<()>
[src]
&mut self,
_lock: &mut TerminalWriter<MemoryTerminal>,
_state: ()
) -> Result<()>
Like restore
, but called when the write lock is already held. Read more
fn read(&mut self, buf: &mut Vec<u8>) -> Result<RawRead>
[src]
Reads some input from the terminal and appends it to the given buffer.