Skip to main content

RemoteCommand

Enum RemoteCommand 

Source
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

Fields

§id: u64
§text: String
§

ClearOverlays

Fields

§

ShowModal

Fields

§title: String
§

PluginLog

Fields

§plugin_name: String
§level: LogLevel
§message: String
§

PluginNotify

Fields

§title: String
§body: String
§

ThemeUpdate

Fields

§theme_json: String
§

NavEnterHintMode

Fields

§plugin_name: String
§

NavExitMode

Fields

§plugin_name: String
§

NavRegisterFocusable

Fields

§plugin_name: String
§width: u16
§height: u16
§label: String
§

NavUnregisterFocusable

Fields

§plugin_name: String
§focusable_id: u64
§

SpawnOverlay

Spawn an overlay at a given position

Fields

§plugin_name: String
§overlay_id: u64
§

RemoveOverlay

Remove a previously spawned overlay

Fields

§plugin_name: String
§overlay_id: u64
§

AddStatusItem

Add a status bar item

Fields

§plugin_name: String
§item_id: u64
§

RemoveStatusItem

Remove a status bar item

Fields

§plugin_name: String
§item_id: u64
§

PromptJump

Trigger prompt jump navigation

Fields

§plugin_name: String
§direction: JumpDirection
§

ApplyTheme

Apply a named theme

Fields

§plugin_name: String
§theme_name: String
§

SetPaletteColor

Set a specific palette color

Fields

§plugin_name: String
§color_name: String
§value: String
§

GetCurrentTheme

Get the current theme name (async response via callback)

Fields

§plugin_name: String

Trait Implementations§

Source§

impl Clone for RemoteCommand

Source§

fn clone(&self) -> RemoteCommand

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RemoteCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<F, W, T, D> Deserialize<With<T, W>, D> for F
where W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,

Source§

fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Gets the layout of the type.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The type for metadata in pointers and references to Self.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V