pub struct LocalCancelRelay { /* private fields */ }Expand description
Cancellation-only authority for one derived Cx subtree.
This relay deliberately carries only a weak reference to the local
FrankenSQLite cancellation state. It cannot expose the target context,
runtime effects, I/O authority, budgets, or native asupersync context.
Local cancellation reaches the target and its descendants without
cancelling an attached native context that may be shared with the worker
root. Calling the relay performs synchronous local bookkeeping and subtree
traversal; actor integrations must not invoke it from a nonblocking Drop.
Implementations§
Source§impl LocalCancelRelay
impl LocalCancelRelay
Sourcepub fn cancel_local(&self, reason: CancelReason) -> bool
pub fn cancel_local(&self, reason: CancelReason) -> bool
Request cancellation of the derived local context subtree.
The strongest CancelReason remains monotone. Returns false when
the target context has already been dropped; otherwise returns true,
including for an idempotent repeated request.