Struct linefeed::memory::MemoryReadGuard
source · pub struct MemoryReadGuard<'a>(_);
Expand description
Holds the lock on read operations of a MemoryTerminal
.
Trait Implementations
sourceimpl<'a> TerminalReader<MemoryTerminal> for MemoryReadGuard<'a>
impl<'a> TerminalReader<MemoryTerminal> for MemoryReadGuard<'a>
sourcefn prepare(
&mut self,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
fn prepare(
&mut self,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
Prepares the terminal for line reading and editing operations. Read more
sourceunsafe fn prepare_with_lock(
&mut self,
_lock: &mut dyn TerminalWriter<MemoryTerminal>,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
unsafe fn prepare_with_lock(
&mut self,
_lock: &mut dyn TerminalWriter<MemoryTerminal>,
_block_signals: bool,
_report_signals: SignalSet
) -> Result<()>
Like
prepare
, but called when the write lock is already held. Read moresourcefn restore(&mut self, _state: ()) -> Result<()>
fn restore(&mut self, _state: ()) -> Result<()>
Restores the terminal state using the given state data.
sourceunsafe fn restore_with_lock(
&mut self,
_lock: &mut dyn TerminalWriter<MemoryTerminal>,
_state: ()
) -> Result<()>
unsafe fn restore_with_lock(
&mut self,
_lock: &mut dyn TerminalWriter<MemoryTerminal>,
_state: ()
) -> Result<()>
Like
restore
, but called when the write lock is already held. Read moreAuto 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more