pub struct CompletionPlugin { /* private fields */ }Expand description
Code completion plugin
Provides auto-completion with:
- Background saturator for non-blocking computation
- Lock-free cache for responsive UI
- Extensible source system via
SourceSupporttrait
Implementations§
Trait Implementations§
Source§impl Default for CompletionPlugin
impl Default for CompletionPlugin
Source§impl Plugin for CompletionPlugin
impl Plugin for CompletionPlugin
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Description of what this plugin provides
Source§fn build(&self, ctx: &mut PluginContext)
fn build(&self, ctx: &mut PluginContext)
Build phase: Register components with the plugin context Read more
Source§fn init_state(&self, registry: &PluginStateRegistry)
fn init_state(&self, registry: &PluginStateRegistry)
Initialize plugin state Read more
Source§fn subscribe(&self, bus: &EventBus, state: Arc<PluginStateRegistry>)
fn subscribe(&self, bus: &EventBus, state: Arc<PluginStateRegistry>)
Subscribe to events via the event bus Read more
Source§fn boot(
&self,
_bus: &EventBus,
state: Arc<PluginStateRegistry>,
event_tx: Option<Sender<RuntimeEvent>>,
)
fn boot( &self, _bus: &EventBus, state: Arc<PluginStateRegistry>, event_tx: Option<Sender<RuntimeEvent>>, )
Boot phase: Called after
EventBus is active and initial events processed Read moreSource§fn finish(&self, _ctx: &mut PluginContext)
fn finish(&self, _ctx: &mut PluginContext)
Finalize phase after all plugins are built Read more
Auto Trait Implementations§
impl Freeze for CompletionPlugin
impl RefUnwindSafe for CompletionPlugin
impl Send for CompletionPlugin
impl Sync for CompletionPlugin
impl Unpin for CompletionPlugin
impl UnwindSafe for CompletionPlugin
Blanket Implementations§
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<P> PluginTuple for Pwhere
P: Plugin,
impl<P> PluginTuple for Pwhere
P: Plugin,
Source§fn add_to(self, loader: &mut PluginLoader)
fn add_to(self, loader: &mut PluginLoader)
Add all plugins in this tuple to the loader