Struct async_lsp::panic::CatchUnwind
source · pub struct CatchUnwind<S> { /* private fields */ }Implementations§
source§impl<S> CatchUnwind<S>
impl<S> CatchUnwind<S>
pub fn new(service: S) -> Self
pub fn new_with_handler( service: S, handler: fn(_: &str, _: Box<dyn Any + Send>) -> ResponseError ) -> Self
Trait Implementations§
source§impl<S: LspService> LspService for CatchUnwind<S>
impl<S: LspService> LspService for CatchUnwind<S>
fn notify(&mut self, notif: AnyNotification) -> ControlFlow<Result<()>>
fn emit(&mut self, event: AnyEvent) -> ControlFlow<Result<()>>
source§impl<S: LspService> Service<AnyRequest> for CatchUnwind<S>
impl<S: LspService> Service<AnyRequest> for CatchUnwind<S>
§type Error = ResponseError
type Error = ResponseError
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.