Skip to main content

Session

Struct Session 

Source
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>,

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,

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>
where &'i mut Core<'env, 'd, Q, Report>: Freeze, H: Freeze,

§

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>
where H: Unpin, &'i mut Core<'env, 'd, Q, Report>: Unpin,

§

impl<'i, 'env, 'd, Q, Report, H> UnsafeUnpin for Session<'i, 'env, 'd, Q, Report, H>
where &'i mut Core<'env, 'd, Q, Report>: UnsafeUnpin, H: 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.