pub struct LSPHandlers { /* private fields */ }
Implementations§
Source§impl LSPHandlers
impl LSPHandlers
pub fn new(cfg: LSPConfig) -> LSPHandlers
pub fn on_hover(&self, request: Request) -> Option<LSPResult>
pub fn on_change(&self, notification: Notification) -> Option<LSPResult>
pub fn on_open(&self, notification: Notification) -> Option<LSPResult>
pub fn on_definition(&self, request: Request) -> Option<LSPResult>
pub fn on_completion(&self, request: Request) -> Option<LSPResult>
pub fn on_save(&self, notification: Notification) -> Option<LSPResult>
pub fn on_diagnostic(&self, request: Request) -> Option<LSPResult>
pub fn on_references(&self, request: Request) -> Option<LSPResult>
Auto Trait Implementations§
impl !Freeze for LSPHandlers
impl !RefUnwindSafe for LSPHandlers
impl !Send for LSPHandlers
impl !Sync for LSPHandlers
impl Unpin for LSPHandlers
impl !UnwindSafe for LSPHandlers
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