pub trait Notification {
    type Params: DeserializeOwned + Serialize + Send + Sync + 'static;

    const METHOD: &'static str;
}

Required Associated Types§

Required Associated Constants§

source

const METHOD: &'static str

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Notification for Cancel

§

type Params = CancelParams

source§

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

source§

impl Notification for DidChangeConfiguration

§

type Params = DidChangeConfigurationParams

source§

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

source§

impl Notification for DidChangeTextDocument

§

type Params = DidChangeTextDocumentParams

source§

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

source§

impl Notification for DidChangeWatchedFiles

§

type Params = DidChangeWatchedFilesParams

source§

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

source§

impl Notification for DidChangeWorkspaceFolders

§

type Params = DidChangeWorkspaceFoldersParams

source§

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

source§

impl Notification for DidCloseTextDocument

§

type Params = DidCloseTextDocumentParams

source§

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

source§

impl Notification for DidCreateFiles

§

type Params = CreateFilesParams

source§

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

source§

impl Notification for DidDeleteFiles

§

type Params = DeleteFilesParams

source§

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

source§

impl Notification for DidOpenTextDocument

§

type Params = DidOpenTextDocumentParams

source§

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

source§

impl Notification for DidRenameFiles

§

type Params = RenameFilesParams

source§

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

source§

impl Notification for DidSaveTextDocument

§

type Params = DidSaveTextDocumentParams

source§

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

source§

impl Notification for Exit

§

type Params = ()

source§

const METHOD: &'static str = "exit"

source§

impl Notification for Initialized

§

type Params = InitializedParams

source§

const METHOD: &'static str = "initialized"

source§

impl Notification for LogMessage

§

type Params = LogMessageParams

source§

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

source§

impl Notification for LogTrace

§

type Params = LogTraceParams

source§

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

source§

impl Notification for Progress

§

type Params = ProgressParams

source§

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

source§

impl Notification for PublishDiagnostics

§

type Params = PublishDiagnosticsParams

source§

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

source§

impl Notification for SetTrace

§

type Params = SetTraceParams

source§

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

source§

impl Notification for ShowMessage

§

type Params = ShowMessageParams

source§

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

source§

impl Notification for TelemetryEvent

§

type Params = OneOf<Map<String, Value>, Vec<Value>>

source§

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

source§

impl Notification for WillSaveTextDocument

§

type Params = WillSaveTextDocumentParams

source§

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

source§

impl Notification for WorkDoneProgressCancel

§

type Params = WorkDoneProgressCancelParams

source§

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