pub struct CancelledNotificationParams {
pub request_id: RequestId,
pub reason: Option<String>,
}Expand description
This notification can be sent by either side to indicate that it is cancelling a previously-issued 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.
A client MUST NOT attempt to cancel its initialize request.
Fields§
§request_id: RequestIdThe ID of the request to cancel.
This MUST correspond to the ID of a request previously issued in the same direction.
reason: Option<String>An optional string describing the reason for the cancellation. This MAY be logged or presented to the user.
Trait Implementations§
Source§impl Clone for CancelledNotificationParams
impl Clone for CancelledNotificationParams
Source§fn clone(&self) -> CancelledNotificationParams
fn clone(&self) -> CancelledNotificationParams
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CancelledNotificationParams
impl Debug for CancelledNotificationParams
Source§impl<'de> Deserialize<'de> for CancelledNotificationParams
impl<'de> Deserialize<'de> for CancelledNotificationParams
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
Auto Trait Implementations§
impl Freeze for CancelledNotificationParams
impl RefUnwindSafe for CancelledNotificationParams
impl Send for CancelledNotificationParams
impl Sync for CancelledNotificationParams
impl Unpin for CancelledNotificationParams
impl UnwindSafe for CancelledNotificationParams
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)