pub struct CancelHandle {
pub cancel_tx: Sender<()>,
}Expand description
Per-request cancellation record held in AprMcpServer::in_flight.
Only apr.run currently honours cancellation. Entries for other tools
are still registered (so a stray notifications/cancelled doesn’t log
a warning) but their senders are never used.
Fields§
§cancel_tx: Sender<()>Sender side of the worker’s cancel mpsc. send(()) causes the
subprocess poll loop to SIGTERM its child.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CancelHandle
impl RefUnwindSafe for CancelHandle
impl Send for CancelHandle
impl Sync for CancelHandle
impl Unpin for CancelHandle
impl UnsafeUnpin for CancelHandle
impl UnwindSafe for CancelHandle
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