pub(crate) struct Server<'conn> {
connection: &'conn Connection,
encoding: Encoding,
workspace: Workspace,
}Fields§
§connection: &'conn Connection§encoding: Encoding§workspace: WorkspaceImplementations§
Source§impl<'conn> Server<'conn>
impl<'conn> Server<'conn>
pub(crate) fn new(connection: &'conn Connection, encoding: Encoding) -> Self
Sourcepub(crate) fn run(self) -> Result<()>
pub(crate) fn run(self) -> Result<()>
Runs until the client asks the server to shut down or closes the connection.
fn handle_request(&self, request: Request) -> Response
fn handle_notification(&mut self, notification: Notification) -> Result<()>
fn send_refreshed(&self, refreshed: Refreshed) -> Result<()>
fn notify<N: LspNotification>(&self, params: N::Params) -> Result<()>
fn completion(&self, params: &CompletionParams) -> Option<CompletionResponse>
fn signature_help(&self, params: &SignatureHelpParams) -> Option<SignatureHelp>
fn hover(&self, params: &HoverParams) -> Option<Hover>
fn semantic_tokens( &self, params: &SemanticTokensParams, ) -> Option<SemanticTokensResult>
fn document_symbols( &self, params: &DocumentSymbolParams, ) -> Option<DocumentSymbolResponse>
fn definition( &self, params: &GotoDefinitionParams, ) -> Option<GotoDefinitionResponse>
fn references(&self, params: &ReferenceParams) -> Option<Vec<Location>>
fn highlights( &self, params: &DocumentHighlightParams, ) -> Option<Vec<DocumentHighlight>>
Auto Trait Implementations§
impl<'conn> !RefUnwindSafe for Server<'conn>
impl<'conn> Freeze for Server<'conn>
impl<'conn> Send for Server<'conn>
impl<'conn> Sync for Server<'conn>
impl<'conn> Unpin for Server<'conn>
impl<'conn> UnsafeUnpin for Server<'conn>
impl<'conn> UnwindSafe for Server<'conn>
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