Struct async_lsp::panic::CatchUnwind
source · pub struct CatchUnwind<S: LspService> { /* private fields */ }
Expand description
The middleware catching panics of underlying handlers and turn them into error responses.
See module level documentations for details.
Implementations§
source§impl<S: LspService> CatchUnwind<S>
impl<S: LspService> CatchUnwind<S>
Trait Implementations§
source§impl<S: LspService> LspService for CatchUnwind<S>
impl<S: LspService> LspService for CatchUnwind<S>
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 CatchUnwind<S>
impl<S: LspService> Service<AnyRequest> for CatchUnwind<S>
§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, <S as Service<AnyRequest>>::Error>
type Future = ResponseFuture<<S as Service<AnyRequest>>::Future, <S as Service<AnyRequest>>::Error>
The future response value.
Auto Trait Implementations§
impl<S> RefUnwindSafe for CatchUnwind<S>where S: RefUnwindSafe,
impl<S> Send for CatchUnwind<S>where S: Send,
impl<S> Sync for CatchUnwind<S>where S: Sync,
impl<S> Unpin for CatchUnwind<S>where S: Unpin,
impl<S> UnwindSafe for CatchUnwind<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