[][src]Enum docuglot::State

pub enum State {
    Uninitialized {
        root_dir: Url,
    },
    WaitingInitialization {
        messages: Vec<ClientMessage>,
    },
    Running {
        server_state: Box<InitializeResult>,
        registrations: Vec<Registration>,
    },
    WaitingShutdown,
    WaitingExit,
}

Describes the state of the client.

Variants

Uninitialized

Server has not been initialized.

Fields of Uninitialized

root_dir: Url

The desired root directory of the server.

WaitingInitialization

Waiting for the server to confirm initialization.

Fields of WaitingInitialization

messages: Vec<ClientMessage>

Messages to be sent after initialization is confirmed.

Running

Normal running state.

Fields of Running

server_state: Box<InitializeResult>

The state of the server.

registrations: Vec<Registration>

The registrations.

WaitingShutdown

Waiting for the server to confirm shutdown.

WaitingExit

Waiting for the server to exit.

Trait Implementations

impl Clone for State[src]

impl Debug for State[src]

impl Display for State[src]

impl PartialEq<State> for State[src]

impl StructuralPartialEq for State[src]

Auto Trait Implementations

impl RefUnwindSafe for State

impl Send for State

impl Sync for State

impl Unpin for State

impl UnwindSafe for State

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.