pub struct Lifecycle<S> { /* private fields */ }
Expand description
The middleware handling Language Server lifecycle.
See module level documentations for details.
Implementations§
Trait Implementations§
source§impl<S: LspService> LspService for Lifecycle<S>where
S::Error: From<ResponseError>,
impl<S: LspService> LspService for Lifecycle<S>where S::Error: From<ResponseError>,
source§fn notify(&mut self, notif: AnyNotification) -> ControlFlow<Result<()>>
fn notify(&mut self, notif: AnyNotification) -> ControlFlow<Result<()>>
The handler of LSP notifications. Read more
source§impl<S: LspService> Service<AnyRequest> for Lifecycle<S>where
S::Error: From<ResponseError>,
impl<S: LspService> Service<AnyRequest> for Lifecycle<S>where S::Error: From<ResponseError>,
§type Response = <S as Service<AnyRequest>>::Response
type Response = <S as Service<AnyRequest>>::Response
Responses given by the service.
§type Error = <S as Service<AnyRequest>>::Error
type Error = <S as Service<AnyRequest>>::Error
Errors produced by the service.
§type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
type Future = ResponseFuture<<S as Service<AnyRequest>>::Future>
The future response value.
Auto Trait Implementations§
impl<S> RefUnwindSafe for Lifecycle<S>where S: RefUnwindSafe,
impl<S> Send for Lifecycle<S>where S: Send,
impl<S> Sync for Lifecycle<S>where S: Sync,
impl<S> Unpin for Lifecycle<S>where S: Unpin,
impl<S> UnwindSafe for Lifecycle<S>where S: UnwindSafe,
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