pub struct ExtensionStatusMailbox { /* private fields */ }Expand description
Shared, cloneable handle to the extension status registry.
Every clone refers to the same map: the host hands one clone to the action bridge (plugin writes) and one to the TUI (rendering).
Implementations§
Source§impl ExtensionStatusMailbox
impl ExtensionStatusMailbox
pub fn new() -> Self
Sourcepub fn set(&self, key: &str, value: &str) -> bool
pub fn set(&self, key: &str, value: &str) -> bool
Set (or, with an empty value, clear) one extension’s status text.
Returns true when the map actually changed — the caller can use that
to avoid a redundant repaint.
Sourcepub fn handle(&self, args: Value) -> Result<Value, String>
pub fn handle(&self, args: Value) -> Result<Value, String>
Handle the legacy SetStatus footer action.
pub fn component(&self, owner: u64, args: Value) -> Result<Value, String>
pub fn remove_owner(&self, owner: u64)
Sourcepub fn get(&self, key: &str) -> Option<String>
pub fn get(&self, key: &str) -> Option<String>
Read one entry without exposing the mutable registry.
Sourcepub fn panels(&self) -> BTreeMap<String, ExtensionPanel>
pub fn panels(&self) -> BTreeMap<String, ExtensionPanel>
Snapshot declarative panels separately from the legacy footer registry.
Sourcepub fn text_except(&self, keys: &[&str]) -> String
pub fn text_except(&self, keys: &[&str]) -> String
Render visible footer entries, omitting keys consumed by richer UI.
Trait Implementations§
Source§impl Clone for ExtensionStatusMailbox
impl Clone for ExtensionStatusMailbox
Auto Trait Implementations§
impl Freeze for ExtensionStatusMailbox
impl RefUnwindSafe for ExtensionStatusMailbox
impl Send for ExtensionStatusMailbox
impl Sync for ExtensionStatusMailbox
impl Unpin for ExtensionStatusMailbox
impl UnsafeUnpin for ExtensionStatusMailbox
impl UnwindSafe for ExtensionStatusMailbox
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