ExecutionWork

Struct ExecutionWork 

Source
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<'_>

Source

pub fn child_capability(&self) -> ExecutionChildCapability

Grant synchronous descendants access without releasing this reservation. Allocation occurs only when a descendant capability is actually requested.

Source

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.

Source

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.

Source

pub fn commit( self, current: ExecutionIdentity, ) -> Result<(), ExecutionLeaseError>

Trait Implementations§

Source§

impl<'a> Debug for ExecutionWork<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for ExecutionWork<'_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for ExecutionWork<'a>

§

impl<'a> !RefUnwindSafe for ExecutionWork<'a>

§

impl<'a> !Send for ExecutionWork<'a>

§

impl<'a> !Sync for ExecutionWork<'a>

§

impl<'a> Unpin for ExecutionWork<'a>

§

impl<'a> !UnwindSafe for ExecutionWork<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.