Skip to main content

Execution

Struct Execution 

Source
pub struct Execution<'owner, S, Q> { /* private fields */ }
Expand description

One execution borrows its exact persistent native retirement owner.

Implementations§

Source§

impl<'owner, S: Build, Q: Startup> Execution<'owner, S, Q>

Source

pub fn try_enter<O>( self, op: O, report: impl Observe, ) -> Result<<O as Op<S, Q>>::Output, Error<'owner, Rejected<<S as Build>::Error, O>, <O as Op<S, Q>>::Output, Q>>
where O: Op<S, Q>,

Source§

impl<'owner, S: Create, Q: Startup> Execution<'owner, S, Q>

Source

pub fn try_create<F, R>( self, op: F, report: impl Observe, ) -> Result<R, Error<'owner, Rejected<<S as Create>::Error, F>, R, Q>>
where F: for<'scope, 'life, 'p, 'd> FnOnce(Scope<'scope, 'life, 'p, 'd, S, Q>) -> R,

Source§

impl<'owner, S, Q> Execution<'owner, S, Q>
where S: Direct, Q: Startup,

Source

pub fn enter<O>( self, op: O, report: impl Observe, ) -> Result<O::Output, Error<'owner, Infallible, O::Output, Q>>
where O: Op<S, Q>,

Source

pub fn enter_with<R>( self, op: impl for<'scope, 'life, 'p, 'd> FnOnce(Scope<'scope, 'life, 'p, 'd, S, Q>) -> R, report: impl Observe, ) -> Result<R, Error<'owner, Infallible, R, Q>>

Source§

impl<'owner, A: Arenas, Q: Startup> Execution<'owner, Scope<A>, Q>

Source

pub fn scope<R>( self, op: impl for<'scope, 'life, 'p, 'd> FnOnce(Scope<'scope, 'life, 'p, 'd, Scope<A>, Q>) -> R, report: impl Observe, ) -> Result<R, Error<'owner, Infallible, R, Q>>

Lends exact arena roots from the same generation as the driver.

Auto Trait Implementations§

§

impl<'owner, S, Q> !Freeze for Execution<'owner, S, Q>

§

impl<'owner, S, Q> !RefUnwindSafe for Execution<'owner, S, Q>

§

impl<'owner, S, Q> !Send for Execution<'owner, S, Q>

§

impl<'owner, S, Q> !Sync for Execution<'owner, S, Q>

§

impl<'owner, S, Q> !UnwindSafe for Execution<'owner, S, Q>

§

impl<'owner, S, Q> Unpin for Execution<'owner, S, Q>
where S: Unpin, Session<'owner, Q>: Unpin,

§

impl<'owner, S, Q> UnsafeUnpin for Execution<'owner, S, Q>
where S: UnsafeUnpin, Session<'owner, Q>: UnsafeUnpin,

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> Convert<T> for T

Source§

fn into(self) -> T

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.