Skip to main content

Session

Struct Session 

Source
pub struct Session<'i, 'life: 'i, 'd: 'life, Q: 'life, Report, H = (), S = (), P: ?Sized + 'i = ()> { /* private fields */ }

Implementations§

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: 'life, H, S, P: ?Sized + 'i, Report: Report> Session<'i, 'life, 'd, Q, Report, H, S, P>

Source

pub fn driver(&mut self) -> &mut Local<'d>

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: 'life, Report: Report> Session<'i, 'life, 'd, Q, Report>

Source

pub fn scope(&mut self) -> &mut Scope<'life, 'd, Report>

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: 'life, H, S, P: ?Sized + 'i, Report: Report> Session<'i, 'life, 'd, Q, Report, H, S, P>
where H: Head<'d>,

Source

pub fn reject<E, R, C>( self, error: E, ) -> Completed<'i, H::Retired, E, R, P, C, Q::Error>
where Q: Startup,

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: 'life, H, P: ?Sized + 'i, Report: Report> Session<'i, 'life, 'd, Q, Report, H, (), P>
where H: Head<'d>,

Source

pub fn admit( self, start: Option<Deadline<'d>>, ) -> StdResult<Session<'i, 'life, 'd, Q, Report, H, Sample, P>, Session<'i, 'life, 'd, Q, Report, H, Error, P>>

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: 'life, H, P: ?Sized + 'i, Report: Report> Session<'i, 'life, 'd, Q, Report, H, Error, P>
where H: Head<'d>,

Source

pub fn complete<E, R, C>( self, ) -> Completed<'i, H::Retired, E, R, P, C, Q::Error>
where Q: Startup,

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: Startup + 'life, H, P: ?Sized + 'i, Report: Report> Session<'i, 'life, 'd, Q, Report, H, Sample, P>
where H: Head<'d>,

Source

pub fn with_app<A, E, R>( self, app: A, run: impl for<'run> FnOnce(App<'run, 'life, 'd, H::Joined<A>, Report, Q>) -> R, ) -> Completed<'i, H::Retired, E, R, P, Wall, Q::Error>
where A: App<'d>,

Source

pub fn drive_until<A, W, E, T>( self, app: A, wait: W, ) -> Completed<'i, H::Retired, E, StdResult<ControlFlow<T, Requested<Q>>, Error>, P, Wall, Q::Error>
where A: App<'d>, W: Root<'d>, W::Output: Into<T>,

Source

pub fn with_quiesce<A, E, R>( self, app: A, timeout: Duration, run: impl for<'run> FnOnce(App<'run, 'life, 'd, H::Joined<A>, Report, Q>) -> R, ) -> Completed<'i, H::Retired, E, R, P, Bound<Wall, Span>, Q::Error>
where A: App<'d>,

Source

pub fn with_at_for<A, E, R>( self, app: A, timeout: Duration, run: impl for<'run> FnOnce(Manual<'run, 'life, 'd, H::Joined<A>, Report, Q>) -> R, ) -> Completed<'i, H::Retired, E, R, P, Bound<Fixed<'d>, Span>, Q::Error>
where A: App<'d>,

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: Startup + 'life, Report: Report> Session<'i, 'life, 'd, Q, Report>

Source

pub fn as_mut(&mut self) -> Session<'_, 'life, 'd, Q, Report>

Source

pub fn with_app<'report, D, R>( &mut self, report: &'report mut Completion, app: D, run: impl for<'app> FnOnce(App<'app, 'life, 'd, D, Report, Q>) -> R, ) -> Result<'report, R, Q::Error>
where D: App<'d>,

Source

pub fn with_quiesce<'report, D, R>( &mut self, report: &'report mut Completion, app: D, timeout: Duration, run: impl for<'app> FnOnce(App<'app, 'life, 'd, D, Report, Q>) -> R, ) -> Result<'report, R, Q::Error>
where D: App<'d>,

Source

pub fn with_at_for<'report, D, R>( &mut self, report: &'report mut Completion, app: D, start: Deadline<'d>, timeout: Duration, run: impl for<'app> FnOnce(Manual<'app, 'life, 'd, D, Report, Q>) -> R, ) -> Result<'report, R, Q::Error>
where D: App<'d>,

Source

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

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: 'life, O, S, Report: Report> Session<'i, 'life, 'd, Q, Report, Borrowed<'i, O>, S, O::Provider>
where O: Root<'d>, O::Provider: 'i,

Source

pub fn root_client(&self) -> <O::Provider as Provider<'d>>::Client<'i>

Source§

impl<'i, 'life: 'i, 'd: 'life, Q: Startup + 'life, S, Report: Report> Session<'i, 'life, 'd, Q, Report, (), S>

Source

pub fn with_provider<'report, O, E, R, D, C>( self, report: &'report mut Completion, owner: O, body: impl for<'loan> FnOnce(Session<'loan, 'life, 'd, Q, Report, Borrowed<'loan, O>, S, O::Provider>) -> (Completed<'loan, O::ParkPlan, E, R, O::Provider, C, Q::Error>, D), ) -> (Result<'report, E, R, Q::Error>, D)
where O: Root<'d> + Resume<'d>, C: Time,

Auto Trait Implementations§

§

impl<'i, 'life, 'd, Q, Report, H = (), S = (), P = ()> !RefUnwindSafe for Session<'i, 'life, 'd, Q, Report, H, S, P>

§

impl<'i, 'life, 'd, Q, Report, H = (), S = (), P = ()> !Send for Session<'i, 'life, 'd, Q, Report, H, S, P>

§

impl<'i, 'life, 'd, Q, Report, H = (), S = (), P = ()> !Sync for Session<'i, 'life, 'd, Q, Report, H, S, P>

§

impl<'i, 'life, 'd, Q, Report, H = (), S = (), P = ()> !UnwindSafe for Session<'i, 'life, 'd, Q, Report, H, S, P>

§

impl<'i, 'life, 'd, Q, Report, H, S, P> Forget for Session<'i, 'life, 'd, Q, Report, H, S, P>
where P: ?Sized,

§

impl<'i, 'life, 'd, Q, Report, H, S, P> Freeze for Session<'i, 'life, 'd, Q, Report, H, S, P>
where &'i mut Core<'life, 'd, Q, Report>: Freeze, H: Freeze, S: Freeze, PhantomData<(*mut &'i (), *mut P)>: Freeze, P: ?Sized,

§

impl<'i, 'life, 'd, Q, Report, H, S, P> Move for Session<'i, 'life, 'd, Q, Report, H, S, P>
where P: ?Sized,

§

impl<'i, 'life, 'd, Q, Report, H, S, P> Unpin for Session<'i, 'life, 'd, Q, Report, H, S, P>
where S: Unpin, H: Unpin, &'i mut Core<'life, 'd, Q, Report>: Unpin, PhantomData<(*mut &'i (), *mut P)>: Unpin, P: ?Sized,

§

impl<'i, 'life, 'd, Q, Report, H, S, P> UnsafeUnpin for Session<'i, 'life, 'd, Q, Report, H, S, P>
where &'i mut Core<'life, 'd, Q, Report>: UnsafeUnpin, H: UnsafeUnpin, S: UnsafeUnpin, PhantomData<(*mut &'i (), *mut P)>: UnsafeUnpin, P: ?Sized,

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§

impl<L, R> Convert<Either<L, R>, 2> for R

Source§

fn into(self) -> Either<L, R>

Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

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.