pub enum Cancel {}Expand description
The cancel request is used by the client in two situations:
- to indicate that it is no longer interested in the result produced by a specific request issued earlier
- to cancel a progress sequence.
Clients should only call this request if the corresponding capability
supportsCancelRequestis true. This request has a hint characteristic: a debug adapter can only be expected to make a ‘best effort’ in honoring this request but there are no guarantees. Thecancelrequest may return an error if it could not cancel an operation but a client should refrain from presenting this error to end users. The request that got cancelled still needs to send a response back. This can either be a normal result (successattribute true) or an error response (successattribute false and themessageset tocancelled). Returning partial results from a cancelled request is possible but please note that a client has no generic way for detecting that a response is partial or not. The progress that got cancelled still needs to send aprogressEndevent back. A client should not assume that progress just got cancelled after sending thecancelrequest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cancel
impl RefUnwindSafe for Cancel
impl Send for Cancel
impl Sync for Cancel
impl Unpin for Cancel
impl UnwindSafe for Cancel
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