Skip to main content

Notification

Trait Notification 

Source
pub trait Notification: DeserializeOwned {
    const METHOD: &'static str;
}
Expand description

A server notification: its method name.

Required Associated Constants§

Source

const METHOD: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Notification for AccountRateLimitsUpdatedNotification

Source§

const METHOD: &'static str = "account/rateLimits/updated"

Source§

impl Notification for AgentMessageDeltaNotification

Source§

const METHOD: &'static str = "item/agentMessage/delta"

Source§

impl Notification for ErrorNotification

Source§

const METHOD: &'static str = "error"

Source§

impl Notification for ItemCompletedNotification

Source§

const METHOD: &'static str = "item/completed"

Source§

impl Notification for ItemStartedNotification

Source§

const METHOD: &'static str = "item/started"

Source§

impl Notification for ThreadStartedNotification

Source§

const METHOD: &'static str = "thread/started"

Source§

impl Notification for ThreadTokenUsageUpdatedNotification

Source§

const METHOD: &'static str = "thread/tokenUsage/updated"

Source§

impl Notification for TurnCompletedNotification

Source§

const METHOD: &'static str = "turn/completed"

Source§

impl Notification for TurnStartedNotification

Source§

const METHOD: &'static str = "turn/started"