pub struct LspServer<R: BufRead, W: Write> {
reader: R,
writer: W,
documents: HashMap<String, String>,
shutdown: bool,
}Expand description
The LSP server state.
Fields§
§reader: R§writer: W§documents: HashMap<String, String>§shutdown: boolImplementations§
Source§impl<R: BufRead, W: Write> LspServer<R, W>
impl<R: BufRead, W: Write> LspServer<R, W>
fn send_response(&mut self, response: Value) -> Result<()>
fn send_notification(&mut self, method: &str, params: Value) -> Result<()>
fn handle_message(&mut self, msg: Value) -> Result<()>
fn completion_context(&self, params: Option<&Value>) -> (String, usize, usize)
fn publish_diagnostics(&mut self, uri: &str) -> Result<()>
Auto Trait Implementations§
impl<R, W> Freeze for LspServer<R, W>
impl<R, W> RefUnwindSafe for LspServer<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for LspServer<R, W>
impl<R, W> Sync for LspServer<R, W>
impl<R, W> Unpin for LspServer<R, W>
impl<R, W> UnsafeUnpin for LspServer<R, W>where
R: UnsafeUnpin,
W: UnsafeUnpin,
impl<R, W> UnwindSafe for LspServer<R, W>where
R: UnwindSafe,
W: UnwindSafe,
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