pub struct Plugin { /* private fields */ }
Implementations§
Source§impl Plugin
impl Plugin
pub fn initialize(&self, info: Vec<PluginBufferInfo>)
pub fn shutdown(&self)
pub fn new_buffer(&self, info: &PluginBufferInfo)
pub fn close_view(&self, view_id: ViewId)
pub fn did_save(&self, view_id: ViewId, path: &Path)
pub fn update<F>(&self, update: &PluginUpdate, callback: F)
pub fn toggle_tracing(&self, enabled: bool)
pub fn collect_trace(&self) -> Result<Value, Error>
pub fn config_changed(&self, view_id: ViewId, changes: &Table)
pub fn language_changed(&self, view_id: ViewId, new_lang: &LanguageId)
pub fn get_hover(&self, view_id: ViewId, request_id: usize, position: usize)
pub fn dispatch_command(&self, view_id: ViewId, method: &str, params: &Value)
Auto Trait Implementations§
impl Freeze for Plugin
impl !RefUnwindSafe for Plugin
impl Send for Plugin
impl !Sync for Plugin
impl Unpin for Plugin
impl !UnwindSafe for Plugin
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