[][src]Enum docuglot::ClientStatement

pub enum ClientStatement {
    OpenDoc {
        doc: TextDocumentItem,
    },
    CloseDoc {
        doc: TextDocumentIdentifier,
    },
}

A statement from the client.

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.

Implementations

impl ClientStatement[src]

#[must_use]pub const fn open_doc(doc: TextDocumentItem) -> Self[src]

Creates a didOpen ClientStatement.

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

Creates a didClose ClientStatement.

Trait Implementations

impl Debug for ClientStatement[src]

impl Display for ClientStatement[src]

impl From<ClientStatement> for ClientMessage[src]

Auto Trait Implementations

Blanket Implementations

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

impl<N, S> AssembleInto<S> for N where
    S: AssembleFrom<N>, 
[src]

type Error = <S as AssembleFrom<N>>::Error

The type of the error that could be thrown during assembly.

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

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

impl<N, S> DisassembleInto<N> for S where
    N: DisassembleFrom<S>, 
[src]

type Error = <N as DisassembleFrom<S>>::Error

The type of the error that could be thrown during 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.