pub enum ServerNotification {
CancelledNotification(CancelledNotification),
ProgressNotification(ProgressNotification),
LoggingMessageNotification(LoggingMessageNotification),
ResourceUpdatedNotification(ResourceUpdatedNotification),
ResourceListChangedNotification(ResourceListChangedNotification),
ToolListChangedNotification(ToolListChangedNotification),
PromptListChangedNotification(PromptListChangedNotification),
}Variants§
CancelledNotification(CancelledNotification)
ProgressNotification(ProgressNotification)
LoggingMessageNotification(LoggingMessageNotification)
ResourceUpdatedNotification(ResourceUpdatedNotification)
ResourceListChangedNotification(ResourceListChangedNotification)
ToolListChangedNotification(ToolListChangedNotification)
PromptListChangedNotification(PromptListChangedNotification)
Trait Implementations§
Source§impl Clone for ServerNotification
impl Clone for ServerNotification
Source§fn clone(&self) -> ServerNotification
fn clone(&self) -> ServerNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerNotification
impl Debug for ServerNotification
Source§impl<'de> Deserialize<'de> for ServerNotification
impl<'de> Deserialize<'de> for ServerNotification
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Notification<CancelledNotificationMethod, CancelledNotificationParam>> for ServerNotification
impl From<Notification<CancelledNotificationMethod, CancelledNotificationParam>> for ServerNotification
Source§fn from(value: CancelledNotification) -> Self
fn from(value: CancelledNotification) -> Self
Converts to this type from the input type.
Source§impl From<Notification<LoggingMessageNotificationMethod, LoggingMessageNotificationParam>> for ServerNotification
impl From<Notification<LoggingMessageNotificationMethod, LoggingMessageNotificationParam>> for ServerNotification
Source§fn from(value: LoggingMessageNotification) -> Self
fn from(value: LoggingMessageNotification) -> Self
Converts to this type from the input type.
Source§impl From<Notification<ProgressNotificationMethod, ProgressNotificationParam>> for ServerNotification
impl From<Notification<ProgressNotificationMethod, ProgressNotificationParam>> for ServerNotification
Source§fn from(value: ProgressNotification) -> Self
fn from(value: ProgressNotification) -> Self
Converts to this type from the input type.
Source§impl From<Notification<ResourceUpdatedNotificationMethod, ResourceUpdatedNotificationParam>> for ServerNotification
impl From<Notification<ResourceUpdatedNotificationMethod, ResourceUpdatedNotificationParam>> for ServerNotification
Source§fn from(value: ResourceUpdatedNotification) -> Self
fn from(value: ResourceUpdatedNotification) -> Self
Converts to this type from the input type.
Source§impl From<NotificationNoParam<PromptListChangedNotificationMethod>> for ServerNotification
impl From<NotificationNoParam<PromptListChangedNotificationMethod>> for ServerNotification
Source§fn from(value: PromptListChangedNotification) -> Self
fn from(value: PromptListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<NotificationNoParam<ResourceListChangedNotificationMethod>> for ServerNotification
impl From<NotificationNoParam<ResourceListChangedNotificationMethod>> for ServerNotification
Source§fn from(value: ResourceListChangedNotification) -> Self
fn from(value: ResourceListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<NotificationNoParam<ToolListChangedNotificationMethod>> for ServerNotification
impl From<NotificationNoParam<ToolListChangedNotificationMethod>> for ServerNotification
Source§fn from(value: ToolListChangedNotification) -> Self
fn from(value: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl GetExtensions for ServerNotification
impl GetExtensions for ServerNotification
fn extensions(&self) -> &Extensions
fn extensions_mut(&mut self) -> &mut Extensions
Source§impl GetMeta for ServerNotification
impl GetMeta for ServerNotification
Source§impl JsonSchema for ServerNotification
impl JsonSchema for ServerNotification
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ServerNotification
impl Serialize for ServerNotification
Source§impl TryInto<Notification<CancelledNotificationMethod, CancelledNotificationParam>> for ServerNotification
impl TryInto<Notification<CancelledNotificationMethod, CancelledNotificationParam>> for ServerNotification
Source§type Error = ServerNotification
type Error = ServerNotification
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ServerNotification
impl !RefUnwindSafe for ServerNotification
impl Send for ServerNotification
impl Sync for ServerNotification
impl Unpin for ServerNotification
impl !UnwindSafe for ServerNotification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more