Struct rushell_deps_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]

Prepares the terminal for line reading and editing operations. Read more

unsafe fn prepare_with_lock(
    &mut self,
    _lock: &mut dyn TerminalWriter<MemoryTerminal>,
    _block_signals: bool,
    _report_signals: SignalSet
) -> Result<()>
[src]

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 dyn TerminalWriter<MemoryTerminal>,
    _state: ()
) -> Result<()>
[src]

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.

Auto Trait Implementations

impl<'a> RefUnwindSafe for MemoryReadGuard<'a>

impl<'a> !Send for MemoryReadGuard<'a>

impl<'a> Sync for MemoryReadGuard<'a>

impl<'a> Unpin for MemoryReadGuard<'a>

impl<'a> UnwindSafe for MemoryReadGuard<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.