pub struct Session<'i, 'env: 'd, 'd: 'i, Q: 'd, Report, H = ()> { /* private fields */ }Implementations§
Source§impl<'i, 'env, 'd, Q: Startup, H, Report: Report<Event = <Arena as Drain>::Reported>> Session<'i, 'env, 'd, Q, Report, H>where
H: Head<'d>,
impl<'i, 'env, 'd, Q: Startup, H, Report: Report<Event = <Arena as Drain>::Reported>> Session<'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>
Auto Trait Implementations§
impl<'i, 'env, 'd, Q, Report, H = ()> !RefUnwindSafe for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H = ()> !Send for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H = ()> !Sync for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H = ()> !UnwindSafe for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H> Forget for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H> Freeze for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H> Move for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H> Unpin for Session<'i, 'env, 'd, Q, Report, H>
impl<'i, 'env, 'd, Q, Report, H> UnsafeUnpin for Session<'i, 'env, 'd, Q, Report, H>
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