pub struct TuiManager { /* private fields */ }Expand description
TUI manager for rendering the analysis progress interface
Implementations§
Source§impl TuiManager
impl TuiManager
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Create a new TUI manager and initialize the terminal
Following Stillwater’s composition principle, initialization is split into:
- Terminal setup (I/O shell)
- Signal handler thread (extracted)
- Render thread (extracted)
Sourcepub fn render(&mut self) -> Result<()>
pub fn render(&mut self) -> Result<()>
Render the current frame (now handled by background thread, kept for compatibility)
Sourcepub fn app_mut(&mut self) -> MutexGuard<'_, App>
pub fn app_mut(&mut self) -> MutexGuard<'_, App>
Get mutable reference to the application state parking_lot::Mutex::lock() never fails (no poisoning)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TuiManager
impl !RefUnwindSafe for TuiManager
impl Send for TuiManager
impl Sync for TuiManager
impl Unpin for TuiManager
impl !UnwindSafe for TuiManager
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> EnsureExt<T> for T
impl<T> EnsureExt<T> for T
Source§fn ensure<P, E>(self, predicate: P, error: E) -> Validation<T, NonEmptyVec<E>>where
P: Predicate<T>,
fn ensure<P, E>(self, predicate: P, error: E) -> Validation<T, NonEmptyVec<E>>where
P: Predicate<T>,
Validate that this value satisfies the given predicate. Read more
Source§fn ensure_with<P, E, F>(
self,
predicate: P,
error_fn: F,
) -> Validation<T, NonEmptyVec<E>>
fn ensure_with<P, E, F>( self, predicate: P, error_fn: F, ) -> Validation<T, NonEmptyVec<E>>
Validate with an error-generating function. 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 more