Skip to main content

Notification

Trait Notification 

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

    const METHOD: &'static str;
}
Expand description

A notification: a message with no response.

Required Associated Constants§

Source

const METHOD: &'static str

Method name on the wire.

Required Associated Types§

Source

type Params: Serialize + DeserializeOwned

Parameters sent with the notification.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Notification for Cancel

Source§

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

Source§

type Params = CancelParams

Source§

impl Notification for Diagnostics

Source§

const METHOD: &'static str = "diagnostics"

Source§

type Params = DiagnosticsParams

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 = ()

Source§

impl Notification for Log

Source§

const METHOD: &'static str = "log"

Source§

type Params = LogParams

Source§

impl Notification for Progress

Source§

const METHOD: &'static str = "progress"

Source§

type Params = ProgressParams