pub struct TuiHandle { /* private fields */ }Expand description
Cheap-to-clone handle the cli code passes around to update the live region and to commit lines to scrollback. Thread-safe; non-blocking on send (a slow render thread can’t stall the build).
Implementations§
Source§impl TuiHandle
impl TuiHandle
Sourcepub fn set_phase(&self, phase: AppPhase)
pub fn set_phase(&self, phase: AppPhase)
Enter phase. Updates the live region’s phase label/spinner
color and clears any in-progress step display. Does NOT push
a scrollback entry — whisker_build::ui::section already
prints labeled phase boundaries that flow into scrollback via
the stderr capture, so a duplicate “▶
Sourcepub fn start_step(&self, label: impl Into<String>)
pub fn start_step(&self, label: impl Into<String>)
Begin a step. Updates current_step in the live region; on
finish_step the row gets committed to scrollback.
Sourcepub fn finish_step(
&self,
label: impl Into<String>,
status: StepStatus,
elapsed: Duration,
)
pub fn finish_step( &self, label: impl Into<String>, status: StepStatus, elapsed: Duration, )
Finish the currently-displayed step. The row is pushed to scrollback as “✓
pub fn apply_event(&self, event: &Event)
pub fn set_dev_server(&self, ws_addr: impl Into<String>, watching: Vec<String>)
pub fn should_quit(&self) -> bool
pub fn request_quit(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuiHandle
impl RefUnwindSafe for TuiHandle
impl Send for TuiHandle
impl Sync for TuiHandle
impl Unpin for TuiHandle
impl UnsafeUnpin for TuiHandle
impl UnwindSafe for TuiHandle
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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