pub struct ServerState { /* private fields */ }
Implementations§
Source§impl ServerState
impl ServerState
pub fn new() -> ServerState
pub fn did_open(&mut self, request: &DidOpenTextDocumentParams)
pub fn did_change(&mut self, request: &DidChangeTextDocumentParams)
pub fn document_symbol( &self, request: &DocumentSymbolParams, ) -> Option<DocumentSymbolResponse>
pub fn hover(&self, request: &HoverParams) -> Option<Hover>
pub fn goto_definition( &self, request: &GotoDefinitionParams, ) -> Option<GotoDefinitionResponse>
pub fn goto_references( &self, request: &ReferenceParams, ) -> Option<Vec<Location>>
Auto Trait Implementations§
impl Freeze for ServerState
impl RefUnwindSafe for ServerState
impl Send for ServerState
impl !Sync for ServerState
impl Unpin for ServerState
impl UnwindSafe for ServerState
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