pub struct CodecUtf8Module;Expand description
UTF-8 content codec module.
Registers UTF-8 classifier (priority 10) and factory during init.
Implementations§
Trait Implementations§
Source§impl Default for CodecUtf8Module
impl Default for CodecUtf8Module
Source§impl Module for CodecUtf8Module
impl Module for CodecUtf8Module
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 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 extension_kinds(&self) -> &[&'static str]
fn extension_kinds(&self) -> &[&'static str]
Extension kinds pushed by this module via
ExtensionStateBridge (#584). Read moreSource§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 CodecUtf8Module
impl RefUnwindSafe for CodecUtf8Module
impl Send for CodecUtf8Module
impl Sync for CodecUtf8Module
impl Unpin for CodecUtf8Module
impl UnsafeUnpin for CodecUtf8Module
impl UnwindSafe for CodecUtf8Module
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