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>
Source§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> Freeze for CatchUnwind<S>where
S: Freeze,
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