[−][src]Struct lsp_async_stub::impls::Context
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]
Notable traits for CancelToken
impl Future for CancelToken type Output = ();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]
pub fn write_request<'life0, 'async_trait, R: Request<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
&'life0 mut self,
params: Option<R::Params>
) -> Pin<Box<dyn Future<Output = Result<Response<R::Result>, Error>> + Send + 'async_trait>> where
R: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 mut self,
params: Option<R::Params>
) -> Pin<Box<dyn Future<Output = Result<Response<R::Result>, Error>> + Send + 'async_trait>> where
R: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn write_notification<'life0, 'async_trait, N: Notification<Params = P>, P: Serialize + DeserializeOwned + Send + Sync>(
&'life0 mut self,
params: Option<N::Params>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
N: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 mut self,
params: Option<N::Params>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
N: 'async_trait,
P: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
pub fn cancel<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
W: Unpin,
impl<W> !UnwindSafe for Context<W>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DynClone for T where
T: Clone, [src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,