[][src]Struct slide_ls::SlideLS

pub struct SlideLS {
    client: Client,
    document_registry: Mutex<RefCell<HashMap<Url, ProgramInfo>>>,
    context: Mutex<RefCell<ProgramContext>>,
    client_caps: Mutex<RefCell<ClientCapabilities>>,
}

A slide language server.

Fields

client: Clientdocument_registry: Mutex<RefCell<HashMap<Url, ProgramInfo>>>context: Mutex<RefCell<ProgramContext>>client_caps: Mutex<RefCell<ClientCapabilities>>

Implementations

impl SlideLS[src]

pub fn new(client: Client) -> Self[src]

Creates a new language server given a server client.

pub fn capabilities() -> ServerCapabilities[src]

Returns capabilities of the language server.

async fn change<'_>(&'_ self, doc: Url, text: String, version: Option<i64>)[src]

fn close(&self, doc: &Url)[src]

fn doc_registry(&self) -> MutexGuard<'_, RefCell<HashMap<Url, ProgramInfo>>>[src]

fn get_program_info(&self, doc: &Url) -> MappedMutexGuard<'_, ProgramInfo>[src]

fn context(&self) -> MappedMutexGuard<'_, ProgramContext>[src]

fn client_caps(&self) -> MappedMutexGuard<'_, ClientCapabilities>[src]

Trait Implementations

impl LanguageServer for SlideLS[src]

Auto Trait Implementations

impl !RefUnwindSafe for SlideLS

impl Send for SlideLS

impl Sync for SlideLS

impl Unpin for SlideLS

impl !UnwindSafe for SlideLS

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.