pub enum PluginFocusableAction {
OpenUrl(String),
OpenFile(String),
Custom(String),
}Expand description
Action to perform when a plugin focusable is activated
Defines what happens when a user activates a plugin-registered focusable region through hint mode.
Variants§
OpenUrl(String)
Open a URL in the default browser
OpenFile(String)
Open a file in the configured editor
Custom(String)
Custom plugin-defined action
The plugin will receive a callback when this action is triggered, allowing custom behavior to be implemented.
Trait Implementations§
Source§impl Clone for PluginFocusableAction
impl Clone for PluginFocusableAction
Source§fn clone(&self) -> PluginFocusableAction
fn clone(&self) -> PluginFocusableAction
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 PluginFocusableAction
impl Debug for PluginFocusableAction
Source§impl PartialEq for PluginFocusableAction
impl PartialEq for PluginFocusableAction
impl StructuralPartialEq for PluginFocusableAction
Auto Trait Implementations§
impl Freeze for PluginFocusableAction
impl RefUnwindSafe for PluginFocusableAction
impl Send for PluginFocusableAction
impl Sync for PluginFocusableAction
impl Unpin for PluginFocusableAction
impl UnsafeUnpin for PluginFocusableAction
impl UnwindSafe for PluginFocusableAction
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.