pub enum ServerNotification {
Cancelled(CancelledNotification),
Progress(ProgressNotification),
ResourceListChanged(ResourceListChangedNotification),
SubscriptionsAcknowledged(SubscriptionsAcknowledgedNotification),
ResourceUpdated(ResourceUpdatedNotification),
PromptListChanged(PromptListChangedNotification),
ToolListChanged(ToolListChangedNotification),
LoggingMessage(LoggingMessageNotification),
}Variants§
Cancelled(CancelledNotification)
The CancelledNotification variant.
Progress(ProgressNotification)
The ProgressNotification variant.
ResourceListChanged(ResourceListChangedNotification)
The ResourceListChangedNotification variant.
SubscriptionsAcknowledged(SubscriptionsAcknowledgedNotification)
The SubscriptionsAcknowledgedNotification variant.
ResourceUpdated(ResourceUpdatedNotification)
The ResourceUpdatedNotification variant.
PromptListChanged(PromptListChangedNotification)
The PromptListChangedNotification variant.
ToolListChanged(ToolListChangedNotification)
The ToolListChangedNotification variant.
LoggingMessage(LoggingMessageNotification)
The LoggingMessageNotification variant.
Trait Implementations§
Source§impl Clone for ServerNotification
impl Clone for ServerNotification
Source§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<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CancelledNotification> for ServerNotification
impl From<CancelledNotification> for ServerNotification
Source§fn from(v: CancelledNotification) -> Self
fn from(v: CancelledNotification) -> Self
Converts to this type from the input type.
Source§impl From<LoggingMessageNotification> for ServerNotification
impl From<LoggingMessageNotification> for ServerNotification
Source§fn from(v: LoggingMessageNotification) -> Self
fn from(v: LoggingMessageNotification) -> Self
Converts to this type from the input type.
Source§impl From<ProgressNotification> for ServerNotification
impl From<ProgressNotification> for ServerNotification
Source§fn from(v: ProgressNotification) -> Self
fn from(v: ProgressNotification) -> Self
Converts to this type from the input type.
Source§impl From<PromptListChangedNotification> for ServerNotification
impl From<PromptListChangedNotification> for ServerNotification
Source§fn from(v: PromptListChangedNotification) -> Self
fn from(v: PromptListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceListChangedNotification> for ServerNotification
impl From<ResourceListChangedNotification> for ServerNotification
Source§fn from(v: ResourceListChangedNotification) -> Self
fn from(v: ResourceListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ResourceUpdatedNotification> for ServerNotification
impl From<ResourceUpdatedNotification> for ServerNotification
Source§fn from(v: ResourceUpdatedNotification) -> Self
fn from(v: ResourceUpdatedNotification) -> Self
Converts to this type from the input type.
Source§impl From<SubscriptionsAcknowledgedNotification> for ServerNotification
impl From<SubscriptionsAcknowledgedNotification> for ServerNotification
Source§fn from(v: SubscriptionsAcknowledgedNotification) -> Self
fn from(v: SubscriptionsAcknowledgedNotification) -> Self
Converts to this type from the input type.
Source§impl From<ToolListChangedNotification> for ServerNotification
impl From<ToolListChangedNotification> for ServerNotification
Source§fn from(v: ToolListChangedNotification) -> Self
fn from(v: ToolListChangedNotification) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ServerNotification
impl PartialEq for ServerNotification
Source§impl Serialize for ServerNotification
impl Serialize for ServerNotification
impl StructuralPartialEq for ServerNotification
Auto Trait Implementations§
impl Freeze for ServerNotification
impl RefUnwindSafe for ServerNotification
impl Send for ServerNotification
impl Sync for ServerNotification
impl Unpin for ServerNotification
impl UnsafeUnpin 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