Skip to main content

Notification

Trait Notification 

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

    const METHOD: LspNotificationMethod<'static>;
    const MESSAGE_DIRECTION: MessageDirection;
}

Required Associated Constants§

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Notification for CancelNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::CancelRequest

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::Both

Source§

type Params = CancelParams

Source§

impl Notification for DidChangeConfigurationNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WorkspaceDidChangeConfiguration

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidChangeConfigurationParams

Source§

impl Notification for DidChangeNotebookDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::NotebookDocumentDidChange

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidChangeNotebookDocumentParams

Source§

impl Notification for DidChangeTextDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TextDocumentDidChange

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidChangeTextDocumentParams

Source§

impl Notification for DidChangeWatchedFilesNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WorkspaceDidChangeWatchedFiles

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidChangeWatchedFilesParams

Source§

impl Notification for DidChangeWorkspaceFoldersNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WorkspaceDidChangeWorkspaceFolders

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidChangeWorkspaceFoldersParams

Source§

impl Notification for DidCloseNotebookDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::NotebookDocumentDidClose

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidCloseNotebookDocumentParams

Source§

impl Notification for DidCloseTextDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TextDocumentDidClose

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidCloseTextDocumentParams

Source§

impl Notification for DidCreateFilesNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WorkspaceDidCreateFiles

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = CreateFilesParams

Source§

impl Notification for DidDeleteFilesNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WorkspaceDidDeleteFiles

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DeleteFilesParams

Source§

impl Notification for DidOpenNotebookDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::NotebookDocumentDidOpen

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidOpenNotebookDocumentParams

Source§

impl Notification for DidOpenTextDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TextDocumentDidOpen

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidOpenTextDocumentParams

Source§

impl Notification for DidRenameFilesNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WorkspaceDidRenameFiles

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = RenameFilesParams

Source§

impl Notification for DidSaveNotebookDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::NotebookDocumentDidSave

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidSaveNotebookDocumentParams

Source§

impl Notification for DidSaveTextDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TextDocumentDidSave

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = DidSaveTextDocumentParams

Source§

impl Notification for ExitNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::Exit

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = ()

Source§

impl Notification for InitializedNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::Initialized

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = InitializedParams

Source§

impl Notification for LogMessageNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WindowLogMessage

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ServerToClient

Source§

type Params = LogMessageParams

Source§

impl Notification for LogTraceNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::LogTrace

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ServerToClient

Source§

type Params = LogTraceParams

Source§

impl Notification for ProgressNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::Progress

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::Both

Source§

type Params = ProgressParams

Source§

impl Notification for PublishDiagnosticsNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TextDocumentPublishDiagnostics

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ServerToClient

Source§

type Params = PublishDiagnosticsParams

Source§

impl Notification for SetTraceNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::SetTrace

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = SetTraceParams

Source§

impl Notification for ShowMessageNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WindowShowMessage

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ServerToClient

Source§

type Params = ShowMessageParams

Source§

impl Notification for TelemetryEventNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TelemetryEvent

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ServerToClient

Source§

type Params = Value

Source§

impl Notification for WillSaveTextDocumentNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::TextDocumentWillSave

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = WillSaveTextDocumentParams

Source§

impl Notification for WorkDoneProgressCancelNotification

Source§

const METHOD: LspNotificationMethod<'static> = LspNotificationMethod::WindowWorkDoneProgressCancel

Source§

const MESSAGE_DIRECTION: MessageDirection = MessageDirection::ClientToServer

Source§

type Params = WorkDoneProgressCancelParams