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>,
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>,
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>>
pub fn driver(&mut self) -> &mut Local<'d>
pub fn reject<E, R, C>( self, error: E, ) -> Completed<'i, <H as Head<'d>>::Retired, E, R, C, <Q as Startup>::Error, Error>
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>
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>,
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>
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>
impl<'i, 'env: 'd, 'd: 'i, Q: Startup, Report: Report<Event = <Arena as Drain>::Reported>, M: Returned> Running<'i, 'env, 'd, Q, Report, (), M>
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>,
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>,
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>,
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)
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>
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>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more