pub struct StatusIndicator {
pub indicator_type: StatusType,
pub process_info: Option<String>,
pub custom_text: Option<String>,
}Expand description
Status indicator component for rendering process and execution status indicators
Fields§
§indicator_type: StatusType§process_info: Option<String>§custom_text: Option<String>Implementations§
Source§impl StatusIndicator
impl StatusIndicator
Sourcepub fn from_muxbox(muxbox: &MuxBox, pty_manager: Option<&PtyManager>) -> Self
pub fn from_muxbox(muxbox: &MuxBox, pty_manager: Option<&PtyManager>) -> Self
Create status indicator from MuxBox and PTY manager state
Sourcepub fn new_custom(indicator: String, text: Option<String>) -> Self
pub fn new_custom(indicator: String, text: Option<String>) -> Self
Create a custom status indicator
Sourcepub fn new(status_type: StatusType) -> Self
pub fn new(status_type: StatusType) -> Self
Create a specific status indicator type
Sourcepub fn with_process_info(self, info: String) -> Self
pub fn with_process_info(self, info: String) -> Self
Set process information text
Sourcepub fn with_custom_text(self, text: String) -> Self
pub fn with_custom_text(self, text: String) -> Self
Set custom text
Sourcepub fn render_for_title(&self, original_title: Option<&str>) -> Option<String>
pub fn render_for_title(&self, original_title: Option<&str>) -> Option<String>
Render the status indicator as a string for title integration
Sourcepub fn get_indicator(&self) -> &str
pub fn get_indicator(&self) -> &str
Get just the indicator character/emoji
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Check if the status indicator should be displayed
Sourcepub fn get_full_status(&self) -> String
pub fn get_full_status(&self) -> String
Get the full status text (indicator + process info + custom text)
Auto Trait Implementations§
impl Freeze for StatusIndicator
impl RefUnwindSafe for StatusIndicator
impl Send for StatusIndicator
impl Sync for StatusIndicator
impl Unpin for StatusIndicator
impl UnsafeUnpin for StatusIndicator
impl UnwindSafe for StatusIndicator
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.