pub struct LocalTransport { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Transport for LocalTransport
impl Transport for LocalTransport
type Backend = CrosstermBackend<Stdout>
Source§fn terminal_mut(&mut self) -> &mut Terminal<Self::Backend>
fn terminal_mut(&mut self) -> &mut Terminal<Self::Backend>
Mutable access to the owned ratatui
Terminal so the runtime
can drive draw.Source§fn poll(&mut self, timeout: Duration) -> Result<Option<RawEvent>>
fn poll(&mut self, timeout: Duration) -> Result<Option<RawEvent>>
Block up to
timeout waiting for an input event. Returns
Ok(None) on timeout, Ok(Some(event)) on activity. Read moreSource§fn finish(self) -> Result<()>
fn finish(self) -> Result<()>
Restore the terminal to its pre-TUI state. The default impl is
a no-op so test transports do not have to implement it. Read more
Source§fn write_passthrough(&mut self, bytes: &[u8]) -> Result<()>
fn write_passthrough(&mut self, bytes: &[u8]) -> Result<()>
Forward a raw byte sequence to the same stream the backend
writes to, bypassing ratatui’s cell grid. Used for terminal
escape sequences that ratatui can’t model directly — kitty
graphics APC bytes, future sixel, etc. The default impl
silently drops the bytes so transports that don’t speak that
dialect (or test doubles) don’t need an override. Read more
Auto Trait Implementations§
impl Freeze for LocalTransport
impl RefUnwindSafe for LocalTransport
impl Send for LocalTransport
impl Sync for LocalTransport
impl Unpin for LocalTransport
impl UnsafeUnpin for LocalTransport
impl UnwindSafe for LocalTransport
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more