lsp_types::notification

Trait Notification

Source
pub trait Notification {
    type Params: DeserializeOwned + Serialize;

    const METHOD: &'static str;
}

Required Associated Constants§

Source

const METHOD: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Notification for Cancel

Source§

const METHOD: &'static str = "$/cancelRequest"

Source§

type Params = CancelParams

Source§

impl Notification for DidChangeConfiguration

Source§

const METHOD: &'static str = "workspace/didChangeConfiguration"

Source§

type Params = DidChangeConfigurationParams

Source§

impl Notification for DidChangeTextDocument

Source§

const METHOD: &'static str = "textDocument/didChange"

Source§

type Params = DidChangeTextDocumentParams

Source§

impl Notification for DidChangeWatchedFiles

Source§

const METHOD: &'static str = "workspace/didChangeWatchedFiles"

Source§

type Params = DidChangeWatchedFilesParams

Source§

impl Notification for DidChangeWorkspaceFolders

Source§

const METHOD: &'static str = "workspace/didChangeWorkspaceFolders"

Source§

type Params = DidChangeWorkspaceFoldersParams

Source§

impl Notification for DidCloseTextDocument

Source§

const METHOD: &'static str = "textDocument/didClose"

Source§

type Params = DidCloseTextDocumentParams

Source§

impl Notification for DidCreateFiles

Source§

const METHOD: &'static str = "workspace/didCreateFiles"

Source§

type Params = CreateFilesParams

Source§

impl Notification for DidDeleteFiles

Source§

const METHOD: &'static str = "workspace/didDeleteFiles"

Source§

type Params = DeleteFilesParams

Source§

impl Notification for DidOpenTextDocument

Source§

const METHOD: &'static str = "textDocument/didOpen"

Source§

type Params = DidOpenTextDocumentParams

Source§

impl Notification for DidRenameFiles

Source§

const METHOD: &'static str = "workspace/didRenameFiles"

Source§

type Params = RenameFilesParams

Source§

impl Notification for DidSaveTextDocument

Source§

const METHOD: &'static str = "textDocument/didSave"

Source§

type Params = DidSaveTextDocumentParams

Source§

impl Notification for Exit

Source§

const METHOD: &'static str = "exit"

Source§

type Params = ()

Source§

impl Notification for Initialized

Source§

const METHOD: &'static str = "initialized"

Source§

type Params = InitializedParams

Source§

impl Notification for LogMessage

Source§

const METHOD: &'static str = "window/logMessage"

Source§

type Params = LogMessageParams

Source§

impl Notification for LogTrace

Source§

const METHOD: &'static str = "$/logTrace"

Source§

type Params = LogTraceParams

Source§

impl Notification for Progress

Source§

const METHOD: &'static str = "$/progress"

Source§

type Params = ProgressParams

Source§

impl Notification for PublishDiagnostics

Source§

const METHOD: &'static str = "textDocument/publishDiagnostics"

Source§

type Params = PublishDiagnosticsParams

Source§

impl Notification for SetTrace

Source§

const METHOD: &'static str = "$/setTrace"

Source§

type Params = SetTraceParams

Source§

impl Notification for ShowMessage

Source§

const METHOD: &'static str = "window/showMessage"

Source§

type Params = ShowMessageParams

Source§

impl Notification for TelemetryEvent

Source§

const METHOD: &'static str = "telemetry/event"

Source§

type Params = Value

Source§

impl Notification for WillSaveTextDocument

Source§

const METHOD: &'static str = "textDocument/willSave"

Source§

type Params = WillSaveTextDocumentParams

Source§

impl Notification for WorkDoneProgressCancel

Source§

const METHOD: &'static str = "window/workDoneProgress/cancel"

Source§

type Params = WorkDoneProgressCancelParams