Enum Cancel

Source
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 supportsCancelRequest is 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. The cancel request 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 (success attribute true) or an error response (success attribute false and the message set to cancelled). 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 a progressEnd event back. A client should not assume that progress just got cancelled after sending the cancel request.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.