pub struct InstrumentedBackend { /* private fields */ }Implementations§
Source§impl InstrumentedBackend
impl InstrumentedBackend
pub fn new(width: u16, height: u16) -> Self
pub fn take_events(&mut self) -> Vec<BackendEvent>
pub fn take_stats(&mut self) -> BackendStats
pub fn resize(&mut self, width: u16, height: u16)
pub fn buffer(&self) -> &Buffer
pub fn scrollback(&self) -> &Buffer
Trait Implementations§
Source§impl Backend for InstrumentedBackend
impl Backend for InstrumentedBackend
Source§fn draw<'a, I>(&mut self, content: I) -> Result<(), Self::Error>
fn draw<'a, I>(&mut self, content: I) -> Result<(), Self::Error>
Draw the given content to the terminal screen. Read more
Source§fn append_lines(&mut self, lines: u16) -> Result<(), Self::Error>
fn append_lines(&mut self, lines: u16) -> Result<(), Self::Error>
Insert
n line breaks to the terminal screen. Read moreSource§fn hide_cursor(&mut self) -> Result<(), Self::Error>
fn hide_cursor(&mut self) -> Result<(), Self::Error>
Hide the cursor on the terminal screen. Read more
Source§fn show_cursor(&mut self) -> Result<(), Self::Error>
fn show_cursor(&mut self) -> Result<(), Self::Error>
Show the cursor on the terminal screen. Read more
Source§fn get_cursor_position(&mut self) -> Result<Position, Self::Error>
fn get_cursor_position(&mut self) -> Result<Position, Self::Error>
Get the current cursor position on the terminal screen. Read more
Source§fn set_cursor_position<P: Into<Position>>(
&mut self,
position: P,
) -> Result<(), Self::Error>
fn set_cursor_position<P: Into<Position>>( &mut self, position: P, ) -> Result<(), Self::Error>
Set the cursor position on the terminal screen to the given x and y coordinates. Read more
Source§fn clear(&mut self) -> Result<(), Self::Error>
fn clear(&mut self) -> Result<(), Self::Error>
Clears all character cells in the terminal’s visible display area. Read more
Source§fn window_size(&mut self) -> Result<WindowSize, Self::Error>
fn window_size(&mut self) -> Result<WindowSize, Self::Error>
Get the size of the terminal screen in columns/rows and pixels as a
WindowSize. Read moreSource§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush any backend-buffered output to the terminal screen. Read more
Source§fn scroll_region_up(
&mut self,
region: Range<u16>,
lines: u16,
) -> Result<(), Self::Error>
fn scroll_region_up( &mut self, region: Range<u16>, lines: u16, ) -> Result<(), Self::Error>
Scroll a region of the screen upwards, where a region is specified by a (half-open) range
of rows. Read more
Source§fn scroll_region_down(
&mut self,
region: Range<u16>,
lines: u16,
) -> Result<(), Self::Error>
fn scroll_region_down( &mut self, region: Range<u16>, lines: u16, ) -> Result<(), Self::Error>
Scroll a region of the screen downwards, where a region is specified by a (half-open) range
of rows. Read more
Source§impl Borrow<TestBackend> for InstrumentedBackend
impl Borrow<TestBackend> for InstrumentedBackend
Source§fn borrow(&self) -> &TestBackend
fn borrow(&self) -> &TestBackend
Immutably borrows from an owned value. Read more
Auto Trait Implementations§
impl Freeze for InstrumentedBackend
impl RefUnwindSafe for InstrumentedBackend
impl Send for InstrumentedBackend
impl Sync for InstrumentedBackend
impl Unpin for InstrumentedBackend
impl UnsafeUnpin for InstrumentedBackend
impl UnwindSafe for InstrumentedBackend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.