pub struct ClientNotification {
pub jsonrpc: JsonRpcVersion,
pub method: NotificationsCancelledMethod,
pub params: CancelledNotificationParams,
}Expand description
This notification is sent by the client to indicate that it is cancelling a request it previously issued.
On stdio, the server also sends this notification, solely to terminate a SubscriptionsListenRequestsubscriptions/listen stream: it references the ID of the subscriptions/listen request that opened the stream. Servers MUST NOT use this notification to cancel any other request.
The request SHOULD still be in-flight, but due to communication latency, it is always possible that this notification MAY arrive after the request has already finished.
This notification indicates that the result will be unused, so any associated processing SHOULD cease.
Fields§
§jsonrpc: JsonRpcVersion§method: NotificationsCancelledMethod§params: CancelledNotificationParamsImplementations§
Source§impl ClientNotification
impl ClientNotification
Sourcepub fn new(params: CancelledNotificationParams) -> Self
pub fn new(params: CancelledNotificationParams) -> Self
Creates a value from its required fields; optional fields are None.
Trait Implementations§
Source§impl Clone for ClientNotification
impl Clone for ClientNotification
Source§impl Debug for ClientNotification
impl Debug for ClientNotification
Source§impl<'de> Deserialize<'de> for ClientNotification
impl<'de> Deserialize<'de> for ClientNotification
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 PartialEq for ClientNotification
impl PartialEq for ClientNotification
Source§impl Serialize for ClientNotification
impl Serialize for ClientNotification
impl StructuralPartialEq for ClientNotification
Auto Trait Implementations§
impl Freeze for ClientNotification
impl RefUnwindSafe for ClientNotification
impl Send for ClientNotification
impl Sync for ClientNotification
impl Unpin for ClientNotification
impl UnsafeUnpin for ClientNotification
impl UnwindSafe for ClientNotification
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