pub struct StatusBarUpdate {
pub window_id: u64,
pub side: StatusBarSide,
pub items: Vec<RenderItem>,
}Expand description
IPC message for status bar updates
Sent from daemon to client (or from plugin to UI) to update status bar content.
§Example
use scarab_plugin_api::status_bar::{StatusBarUpdate, StatusBarSide, RenderItem};
let update = StatusBarUpdate {
window_id: 1,
side: StatusBarSide::Right,
items: vec![
RenderItem::Text("12:34 PM".to_string()),
],
};Fields§
§window_id: u64ID of the window to update
side: StatusBarSideWhich side of the status bar to update
items: Vec<RenderItem>Render items to display
Trait Implementations§
Source§impl Clone for StatusBarUpdate
impl Clone for StatusBarUpdate
Source§fn clone(&self) -> StatusBarUpdate
fn clone(&self) -> StatusBarUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StatusBarUpdate
impl Debug for StatusBarUpdate
Source§impl<'de> Deserialize<'de> for StatusBarUpdate
impl<'de> Deserialize<'de> for StatusBarUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StatusBarUpdate
impl RefUnwindSafe for StatusBarUpdate
impl Send for StatusBarUpdate
impl Sync for StatusBarUpdate
impl Unpin for StatusBarUpdate
impl UnsafeUnpin for StatusBarUpdate
impl UnwindSafe for StatusBarUpdate
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.