Skip to main content

Tui

Struct Tui 

Source
pub struct Tui { /* private fields */ }

Implementations§

Source§

impl Tui

Source

pub fn start(target: String, bundle: String) -> Result<(Self, TuiHandle)>

Set up the inline TUI, install the stderr capture, and hand back a (Tui, TuiHandle) pair. The cli keeps TuiHandle and passes Tui to a dedicated OS thread that runs the render loop (ratatui’s Terminal isn’t Send once it has a backend holding raw fds — keep it pinned to one thread).

Source

pub fn render_until_quit(&mut self) -> Result<()>

Drive the render loop until should_quit flips (either via q / Esc / Ctrl-C in the terminal or via TuiHandle::request_quit from the cli when its work finishes).

Source

pub fn was_user_quit(&self) -> bool

Whether the most recent quit signal came from a user keypress rather than a TuiHandle::request_quit call. Callers use this after render_until_quit returns to decide whether to process::exit (user quit while the dev-server was running) or to fall through and let the cli’s own return path run (cli finished its work).

Source

pub fn shutdown(self) -> Result<()>

Auto Trait Implementations§

§

impl !Sync for Tui

§

impl Freeze for Tui

§

impl RefUnwindSafe for Tui

§

impl Send for Tui

§

impl Unpin for Tui

§

impl UnsafeUnpin for Tui

§

impl UnwindSafe for Tui

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V