Enum docuglot::Transmission[][src]

pub enum Transmission {
    OpenDoc {
        doc: TextDocumentItem,
    },
    CloseDoc {
        doc: TextDocumentIdentifier,
    },
    GetDocumentSymbol {
        doc: TextDocumentIdentifier,
    },
    Shutdown,
}

A communication to be sent to a language server.

Variants

OpenDoc

The tool opened doc.

Fields of OpenDoc

doc: TextDocumentItem

The document that was opened.

CloseDoc

The tool closed doc.

Fields of CloseDoc

doc: TextDocumentIdentifier

The document that was closed.

GetDocumentSymbol

The tool is requesting document symbols.

Fields of GetDocumentSymbol

doc: TextDocumentIdentifier

The document.

Shutdown

The tool is shutting down the language server.

Implementations

impl Transmission[src]

#[must_use]pub const fn close_doc(doc: TextDocumentIdentifier) -> Self[src]

Creates a didClose Transmission.

Trait Implementations

impl Debug for Transmission[src]

impl Display for Transmission[src]

Auto Trait Implementations

Blanket Implementations

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

impl<P, C> AssembleInto<C> for P where
    C: AssembleFrom<P>, 
[src]

type Error = <C as AssembleFrom<P>>::Error

Describes an error with the parts. Read more

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

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

impl<P, C> DisassembleInto<P> for C where
    P: DisassembleFrom<C>, 
[src]

type Error = <P as DisassembleFrom<C>>::Error

Describes an error that prevents disassembly.

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.