pub struct ExecutionWork<'a> { /* private fields */ }Expand description
Short-lived trusted execution scope. It borrows its reservation and is thread-bound; no active scope may cross a yield. Dropping it, including on panic, never acknowledges changed configuration. Normal executor completion must explicitly commit against the same live owner’s fresh identity.
Implementations§
Source§impl ExecutionWork<'_>
impl ExecutionWork<'_>
Sourcepub fn child_capability(&self) -> ExecutionChildCapability
pub fn child_capability(&self) -> ExecutionChildCapability
Grant synchronous descendants access without releasing this reservation. Allocation occurs only when a descendant capability is actually requested.
Sourcepub fn source_borrow_scope(&self) -> ExecutionSourceScope
pub fn source_borrow_scope(&self) -> ExecutionSourceScope
Publish decoder-only authority for the duration of a trusted source borrow. The actual decoder’s mutable borrow can cross a scoped thread; generic owner capabilities and router admission remain thread-bound.
Sourcepub fn source_borrow_scope_with_resources(
&self,
resources: Option<SourceResourceContext>,
) -> ExecutionSourceScope
pub fn source_borrow_scope_with_resources( &self, resources: Option<SourceResourceContext>, ) -> ExecutionSourceScope
Attach only the explicitly supplied resource account to this source capability. No kernel, diagnostics, census or other TLS state is copied.