pub struct Application<'app, 'd: 'app, D, Q = ()> { /* private fields */ }Implementations§
Source§impl<'app, 'd: 'app, D, Q> Application<'app, 'd, D, Q>where
D: Application<'d>,
impl<'app, 'd: 'app, D, Q> Application<'app, 'd, D, Q>where
D: Application<'d>,
pub fn drive<R>(&mut self, root: R) -> Result<R::Output>where
R: Root<'d>,
Sourcepub fn client<P>(
&mut self,
select: impl for<'borrow> FnOnce(Pin<&'borrow D>) -> Pin<&'borrow P>,
) -> P::Client<'app>where
P: Provider<'d>,
'd: 'app,
pub fn client<P>(
&mut self,
select: impl for<'borrow> FnOnce(Pin<&'borrow D>) -> Pin<&'borrow P>,
) -> P::Client<'app>where
P: Provider<'d>,
'd: 'app,
Issues a provider client tied to the surrounding application scope.
pub fn run(&mut self) -> Result<Requested<Q>>
Auto Trait Implementations§
impl<'app, 'd, D, Q = ()> !RefUnwindSafe for Application<'app, 'd, D, Q>
impl<'app, 'd, D, Q = ()> !Send for Application<'app, 'd, D, Q>
impl<'app, 'd, D, Q = ()> !Sync for Application<'app, 'd, D, Q>
impl<'app, 'd, D, Q = ()> !UnwindSafe for Application<'app, 'd, D, Q>
impl<'app, 'd, D, Q> Freeze for Application<'app, 'd, D, Q>
impl<'app, 'd, D, Q> Unpin for Application<'app, 'd, D, Q>
impl<'app, 'd, D, Q> UnsafeUnpin for Application<'app, 'd, D, Q>
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