Struct pepper::plugin::Plugin[][src]

pub struct Plugin {
    pub data: Box<dyn Any>,
    pub on_editor_events: fn(_: PluginHandle, _: &mut EditorContext),
    pub on_process_spawned: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: PlatformProcessHandle),
    pub on_process_output: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: &[u8]),
    pub on_process_exit: fn(_: PluginHandle, _: &mut EditorContext, _: u32),
    pub on_completion: fn(_: PluginHandle, _: &mut EditorContext, _: &CompletionContext) -> bool,
}

Fields

data: Box<dyn Any>on_editor_events: fn(_: PluginHandle, _: &mut EditorContext)on_process_spawned: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: PlatformProcessHandle)on_process_output: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: &[u8])on_process_exit: fn(_: PluginHandle, _: &mut EditorContext, _: u32)on_completion: fn(_: PluginHandle, _: &mut EditorContext, _: &CompletionContext) -> bool

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.