pub struct LspServer { /* private fields */ }Implementations§
Source§impl LspServer
impl LspServer
pub fn new<S, I>(program: S, args: I) -> (LspServer, Receiver<ServerMessage>)
pub async fn initialize( &self, params: InitializeParams, ) -> Result<InitializeResult, Error>
pub async fn initialized(&self)
pub async fn send_request<R>(
&self,
params: R::Params,
) -> Result<R::Result, Error>where
R: Request,
pub async fn send_response<R>(&self, id: Id, result: R::Result)where
R: Request,
pub async fn send_error_response(&self, id: Id, error: Error)
pub async fn send_notification<N>(&self, params: N::Params)where
N: Notification,
pub async fn shutdown(&self) -> Result<(), Error>
pub async fn exit(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LspServer
impl !RefUnwindSafe for LspServer
impl Send for LspServer
impl Sync for LspServer
impl Unpin for LspServer
impl UnsafeUnpin for LspServer
impl !UnwindSafe for LspServer
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