pub struct StatusHandle { /* private fields */ }Expand description
Changes a StatusBar’s items from anywhere while it shows: a
component’s handler, a timer, another thread’s result as it arrives.
Implementations§
Source§impl StatusHandle
impl StatusHandle
Sourcepub fn set(&self, id: &str, item: StatusItem)
pub fn set(&self, id: &str, item: StatusItem)
Set item id to item, where it is; a new id goes last on the
left.
Sourcepub fn put(&self, id: &str, item: StatusItem, right: Option<bool>)
pub fn put(&self, id: &str, item: StatusItem, right: Option<bool>)
Set item id on the left or (right) the right, moving it there.
Sourcepub fn get(&self, id: &str) -> Option<StatusItem>
pub fn get(&self, id: &str) -> Option<StatusItem>
Item id, if the bar has it.
Sourcepub fn set_keymap(&self, keymap: Keymap)
pub fn set_keymap(&self, keymap: Keymap)
The keymap StatusItem::Hints read.
Trait Implementations§
Source§impl Clone for StatusHandle
impl Clone for StatusHandle
Auto Trait Implementations§
impl !RefUnwindSafe for StatusHandle
impl !Send for StatusHandle
impl !Sync for StatusHandle
impl !UnwindSafe for StatusHandle
impl Freeze for StatusHandle
impl Unpin for StatusHandle
impl UnsafeUnpin for StatusHandle
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