pub struct CmdlineModule;Expand description
Command-line mode module.
Registers CmdlineBridge via BridgeProvider during init().
Implementations§
Source§impl CmdlineModule
impl CmdlineModule
Trait Implementations§
Source§impl Default for CmdlineModule
impl Default for CmdlineModule
Source§impl Module for CmdlineModule
impl Module for CmdlineModule
Source§fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
fn init(&mut self, ctx: &ModuleContext) -> ProbeResult
Initialize module (Linux equivalent:
probe() function). Read moreSource§fn exit(&mut self) -> Result<(), ModuleError>
fn exit(&mut self) -> Result<(), ModuleError>
Cleanup module (Linux equivalent:
remove() function). Read moreSource§fn extension_kinds(&self) -> &[&'static str]
fn extension_kinds(&self) -> &[&'static str]
Extension kinds pushed by this module via
ExtensionStateBridge (#584). Read moreSource§fn api_version(&self) -> Version
fn api_version(&self) -> Version
Required kernel API version. Read more
Source§fn dependencies(&self) -> Vec<ModuleId>
fn dependencies(&self) -> Vec<ModuleId>
Required dependencies (must be loaded before this module). Read more
Source§fn optional_dependencies(&self) -> Vec<ModuleId>
fn optional_dependencies(&self) -> Vec<ModuleId>
Optional dependencies (load before if available, but not required). Read more
Source§fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
fn version_constraints(&self) -> Vec<(ModuleId, &'static str)>
Version constraints on dependencies (#619). Read more
Source§fn on_all_loaded(&mut self, _ctx: &ModuleContext)
fn on_all_loaded(&mut self, _ctx: &ModuleContext)
Called after ALL modules are loaded (post-init phase). Read more
Source§fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
fn on_buffer_focus(&mut self, _buffer_id: BufferId, _ctx: &ModuleContext)
Called when session focuses on a buffer. Read more
Source§fn on_unload(&mut self) -> Result<(), ModuleError>
fn on_unload(&mut self) -> Result<(), ModuleError>
Called before module unload for cleanup. Read more
Source§fn commands(&self) -> Vec<CommandRegistration>
fn commands(&self) -> Vec<CommandRegistration>
Get command registrations.
Source§fn keybindings(&self) -> Vec<KeybindingRegistration>
fn keybindings(&self) -> Vec<KeybindingRegistration>
Get keybinding registrations.
Source§fn event_handlers(&self) -> Vec<EventHandlerRegistration>
fn event_handlers(&self) -> Vec<EventHandlerRegistration>
Get event handler registrations.
Source§fn supports_hot_reload(&self) -> bool
fn supports_hot_reload(&self) -> bool
Whether this module supports hot reload. Read more
Source§fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
fn restore_state(&mut self, _state: &[u8]) -> Result<(), ModuleError>
Restore module state after hot reload. Read more
Auto Trait Implementations§
impl Freeze for CmdlineModule
impl RefUnwindSafe for CmdlineModule
impl Send for CmdlineModule
impl Sync for CmdlineModule
impl Unpin for CmdlineModule
impl UnsafeUnpin for CmdlineModule
impl UnwindSafe for CmdlineModule
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