Skip to main content

App

Struct App 

Source
pub struct App<'app, 'env: 'd, 'd: 'app, D, Report, Q = (), S = ManuallyDrop<D>>
where D: Layout<'d>, S: Project<App = D>,
{ /* private fields */ }

Implementations§

Source§

impl<'app, 'env: 'd, 'd: 'app, D, Q, Report: Report<Event = <Arena as Drain>::Reported>> App<'app, 'env, 'd, D, Report, Q>
where D: Layout<'d>,

Source

pub fn state_token(&mut self) -> &mut Token<Identity<'d, 1>>

Source

pub fn provide<'provider, P: Provider<'d>>( &self, provider: Pin<&'provider P>, ) -> P::Client<'provider>
where 'app: 'provider,

Source

pub fn root_client(&mut self) -> <D::Provider as Provider<'d>>::Client<'app>
where D: Root<'d>, D::Provider: 'app,

Source

pub fn client<P>( &mut self, select: impl for<'borrow> FnOnce(Pin<&'borrow D>) -> Pin<&'borrow P>, ) -> <P::Provider as Provider<'d>>::Client<'app>
where P: Root<'d>, P::Provider: 'app,

Source

pub fn inspect(&mut self) -> Pin<&D>

Source§

impl<'app, 'env: 'd, 'd: 'app, D, Q, Report: Report<Event = <Arena as Drain>::Reported>> App<'app, 'env, 'd, D, Report, Q>
where D: App<'d>, Q: Startup,

Source

pub fn turn<C: Input<'d>>( &mut self, source: C, ) -> Result<Dispatched<'_, 'app, 'd, D, Report>, Error>

Source

pub fn complete(&mut self, source: Bound<Span>) -> Result<(), Error>

Source

pub fn drive<R>(&mut self, root: R) -> Result<R::Output, Error>
where R: Root<'d>,

Source

pub fn drive_on<C: Input<'d>, R>( &mut self, source: C, root: R, ) -> Result<R::Output, Error>
where R: Root<'d>,

Source

pub fn run<C: Input<'d>>(&mut self, source: C) -> Result<Requested<Q>, Error>

Source

pub fn run_drain(&mut self, timeout: Positive) -> Result<Report<Q>, Error>
where D: Drain<'d>,

Source

pub fn drive_drain<R>( &mut self, timeout: Positive, root: R, ) -> Result<ControlFlow<R::Output, Report<Q>>, Error>
where D: Drain<'d>, R: Root<'d>,

Source

pub fn drive_until<R>( &mut self, root: R, ) -> Result<ControlFlow<R::Output, Requested<Q>>, Error>
where R: Root<'d>,

Auto Trait Implementations§

§

impl<'app, 'env, 'd, D, Report, Q = (), S = ManuallyDrop<D>> !RefUnwindSafe for App<'app, 'env, 'd, D, Report, Q, S>

§

impl<'app, 'env, 'd, D, Report, Q = (), S = ManuallyDrop<D>> !Send for App<'app, 'env, 'd, D, Report, Q, S>

§

impl<'app, 'env, 'd, D, Report, Q = (), S = ManuallyDrop<D>> !Sync for App<'app, 'env, 'd, D, Report, Q, S>

§

impl<'app, 'env, 'd, D, Report, Q = (), S = ManuallyDrop<D>> !UnwindSafe for App<'app, 'env, 'd, D, Report, Q, S>

§

impl<'app, 'env, 'd, D, Report, Q, S> Forget for App<'app, 'env, 'd, D, Report, Q, S>

§

impl<'app, 'env, 'd, D, Report, Q, S> Freeze for App<'app, 'env, 'd, D, Report, Q, S>
where &'app mut Core<'env, 'd, Q, Report>: Freeze, &'app Value<Identity<'d>, Stored<S, <D as Layout<'d>>::ParkPlan>>: Freeze, PhantomData<&'app mut &'app ()>: Freeze, PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: Freeze,

§

impl<'app, 'env, 'd, D, Report, Q, S> Move for App<'app, 'env, 'd, D, Report, Q, S>

§

impl<'app, 'env, 'd, D, Report, Q, S> Unpin for App<'app, 'env, 'd, D, Report, Q, S>
where &'app mut Core<'env, 'd, Q, Report>: Unpin, &'app Value<Identity<'d>, Stored<S, <D as Layout<'d>>::ParkPlan>>: Unpin, &'app mut &'app (): Unpin, *mut (): Unpin,

§

impl<'app, 'env, 'd, D, Report, Q, S> UnsafeUnpin for App<'app, 'env, 'd, D, Report, Q, S>
where &'app mut Core<'env, 'd, Q, Report>: UnsafeUnpin, &'app Value<Identity<'d>, Stored<S, <D as Layout<'d>>::ParkPlan>>: UnsafeUnpin, PhantomData<&'app mut &'app ()>: UnsafeUnpin, PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: 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.