[][src]Struct lsp_async_stub::impls::Context

pub struct Context<W: Clone + Send + Sync> { /* fields omitted */ }

Implementations

impl<W: Clone + Send + Sync> Context<W>[src]

pub async fn is_initialized(&self) -> bool[src]

pub async fn is_shutting_down(&self) -> bool[src]

pub fn world(&mut self) -> &mut W[src]

pub fn cancel_token(&mut self) -> &mut CancelToken

Notable traits for CancelToken

impl Future for CancelToken type Output = ();
[src]

pub async fn defer<F: Future<Output = ()> + Send + 'static>(&self, fut: F)[src]

Defer the execution of the future until after the handler returned (and response was sent if applicable).

If sending a response fails, deferred futures won't be executed.

Trait Implementations

impl<W: Clone + Send + Sync> Clone for Context<W>[src]

impl<W: Clone + Send + Sync> RequestWriter for Context<W>[src]

Auto Trait Implementations

impl<W> !RefUnwindSafe for Context<W>[src]

impl<W> Send for Context<W>[src]

impl<W> Sync for Context<W>[src]

impl<W> Unpin for Context<W> where
    W: Unpin
[src]

impl<W> !UnwindSafe for Context<W>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.