pub enum RemoteCommand {
Show 18 variants
DrawOverlay {
id: u64,
x: u16,
y: u16,
text: String,
style: OverlayStyle,
},
ClearOverlays {
id: Option<u64>,
},
ShowModal {
title: String,
items: Vec<ModalItem>,
},
PluginLog {
plugin_name: String,
level: LogLevel,
message: String,
},
PluginNotify {
title: String,
body: String,
level: NotifyLevel,
},
ThemeUpdate {
theme_json: String,
},
NavEnterHintMode {
plugin_name: String,
},
NavExitMode {
plugin_name: String,
},
NavRegisterFocusable {
plugin_name: String,
x: u16,
y: u16,
width: u16,
height: u16,
label: String,
action: NavFocusableAction,
},
NavUnregisterFocusable {
plugin_name: String,
focusable_id: u64,
},
SpawnOverlay {
plugin_name: String,
overlay_id: u64,
config: OverlayConfig,
},
RemoveOverlay {
plugin_name: String,
overlay_id: u64,
},
AddStatusItem {
plugin_name: String,
item_id: u64,
item: StatusBarItem,
},
RemoveStatusItem {
plugin_name: String,
item_id: u64,
},
PromptJump {
plugin_name: String,
direction: JumpDirection,
},
ApplyTheme {
plugin_name: String,
theme_name: String,
},
SetPaletteColor {
plugin_name: String,
color_name: String,
value: String,
},
GetCurrentTheme {
plugin_name: String,
},
}Expand description
Command sent from plugin to daemon/client
Variants§
DrawOverlay
ClearOverlays
ShowModal
PluginLog
PluginNotify
ThemeUpdate
SpawnOverlay
Spawn an overlay at a given position
RemoveOverlay
Remove a previously spawned overlay
AddStatusItem
Add a status bar item
RemoveStatusItem
Remove a status bar item
PromptJump
Trigger prompt jump navigation
ApplyTheme
Apply a named theme
SetPaletteColor
Set a specific palette color
GetCurrentTheme
Get the current theme name (async response via callback)
Trait Implementations§
Source§impl Clone for RemoteCommand
impl Clone for RemoteCommand
Source§fn clone(&self) -> RemoteCommand
fn clone(&self) -> RemoteCommand
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 moreAuto Trait Implementations§
impl Freeze for RemoteCommand
impl RefUnwindSafe for RemoteCommand
impl Send for RemoteCommand
impl Sync for RemoteCommand
impl Unpin for RemoteCommand
impl UnsafeUnpin for RemoteCommand
impl UnwindSafe for RemoteCommand
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.