Skip to main content

Running

Struct Running 

Source
pub struct Running<'i, 'env: 'd, 'd: 'i, Q: 'd, Report, H, M> { /* private fields */ }

Implementations§

Source§

impl<'i, 'env: 'd, 'd: 'i, Q: Startup, H, Report: Report<Event = <Arena as Drain>::Reported>> Running<'i, 'env, 'd, Q, Report, H, ()>
where H: Head<'d>,

Source

pub fn admit<E, R, C>( core: &'i mut Core<'env, 'd, Q, Report>, head: H, start: Option<Deadline<'d>>, ) -> Result<Self, Completed<'i, <H as Head<'d>>::Retired, E, R, C, <Q as Startup>::Error, Error>>

Source

pub fn driver(&mut self) -> &mut Local<'d>

Source

pub fn reject<E, R, C>( self, error: E, ) -> Completed<'i, <H as Head<'d>>::Retired, E, R, C, <Q as Startup>::Error, Error>

Source

pub fn drive_until<A, W, E, T>( self, app: A, wait: W, ) -> Completed<'i, <H as Head<'d>>::Retired, E, Result<ControlFlow<T, Requested<Q>>, Error>, H::Time<Wall>, <Q as Startup>::Error, Error>
where A: App<'d>, W: Root<'d>, W::Output: Into<T>,

Source

pub fn with_at_for<A, E, R>( self, app: A, timeout: Duration, run: impl for<'run> FnOnce(&mut App<'run, 'env, 'd, H::Joined<A>, Report, Q>) -> R, ) -> Completed<'i, <H as Head<'d>>::Retired, E, R, H::Time<Bound<Span, Deadline<'d>>>, <Q as Startup>::Error, Error>
where A: App<'d>,

Source

pub fn with_app<C, T, E, R, B>( self, app: T, timeout: impl Into<C>, run: impl for<'app> FnOnce(&mut App<'app, 'env, 'd, H::Joined<T>, Report, Q>) -> R, ) -> Completed<'i, <H as Head<'d>>::Retired, E, R, H::Time<C>, <Q as Startup>::Error, B>
where T: App<'d>, C: Time, Q: Startup,

Source§

impl<'i, 'env: 'd, 'd: 'i, Q: Startup, Report: Report<Event = <Arena as Drain>::Reported>, M: Returned> Running<'i, 'env, 'd, Q, Report, (), M>

Source

pub fn run<D, R>( core: &'i mut Core<'env, 'd, Q, Report>, app: D, run: impl for<'app> FnOnce(&mut App<'app, 'env, 'd, D, Report, Q>) -> R, ) -> Outcome<R, Q::Error, M>
where D: App<'d>,

Source

pub fn run_for<D, R>( core: &'i mut Core<'env, 'd, Q, Report>, app: D, timeout: Duration, run: impl for<'app> FnOnce(&mut App<'app, 'env, 'd, D, Report, Q>) -> R, ) -> Outcome<R, Q::Error, M>
where D: App<'d>,

Source

pub fn run_at<D, R>( core: &'i mut Core<'env, 'd, Q, Report>, app: D, start: Deadline<'d>, timeout: Duration, run: impl for<'app> FnOnce(&mut App<'app, 'env, 'd, D, Report, Q>) -> R, ) -> Outcome<R, Q::Error, M>
where D: App<'d>,

Source

pub fn lend<O, E, R, D, C>( core: &'i mut Core<'env, 'd, Q, Report>, owner: O, body: impl for<'loan> FnOnce(&'loan mut Core<'env, 'd, Q, Report>, Borrowed<'loan, O>) -> (Completed<'loan, O::ParkPlan, E, R, C, Q::Error>, D), ) -> (LoanResult<E, R, Q::Error, M>, D)
where O: Root<'d> + Resume<'d>, C: Time, Q: Startup,

Auto Trait Implementations§

§

impl<'i, 'env, 'd, Q, Report, H, M> !RefUnwindSafe for Running<'i, 'env, 'd, Q, Report, H, M>

§

impl<'i, 'env, 'd, Q, Report, H, M> !Send for Running<'i, 'env, 'd, Q, Report, H, M>

§

impl<'i, 'env, 'd, Q, Report, H, M> !Sync for Running<'i, 'env, 'd, Q, Report, H, M>

§

impl<'i, 'env, 'd, Q, Report, H, M> !UnwindSafe for Running<'i, 'env, 'd, Q, Report, H, M>

§

impl<'i, 'env, 'd, Q, Report, H, M> Forget for Running<'i, 'env, 'd, Q, Report, H, M>

§

impl<'i, 'env, 'd, Q, Report, H, M> Freeze for Running<'i, 'env, 'd, Q, Report, H, M>
where &'i mut Core<'env, 'd, Q, Report>: Freeze, H: Freeze, PhantomData<fn() -> M>: Freeze,

§

impl<'i, 'env, 'd, Q, Report, H, M> Move for Running<'i, 'env, 'd, Q, Report, H, M>

§

impl<'i, 'env, 'd, Q, Report, H, M> Unpin for Running<'i, 'env, 'd, Q, Report, H, M>
where H: Unpin, &'i mut Core<'env, 'd, Q, Report>: Unpin,

§

impl<'i, 'env, 'd, Q, Report, H, M> UnsafeUnpin for Running<'i, 'env, 'd, Q, Report, H, M>
where &'i mut Core<'env, 'd, Q, Report>: UnsafeUnpin, H: UnsafeUnpin, PhantomData<fn() -> M>: 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<L, R> Convert<Either<L, R>, 1> for L

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<L, R> Convert<Either<L, R>, 2> for R

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

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

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.