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>
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§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>,
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§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>,
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§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>,
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§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>,
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>,
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>,
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>
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>,
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>
impl<'i, 'life: 'i, 'd: 'life, Q: Startup + 'life, Report: Report> Session<'i, 'life, 'd, Q, Report>
pub fn as_mut(&mut self) -> Session<'_, 'life, 'd, Q, Report>
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>,
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>,
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>,
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>
impl<'i, 'life: 'i, 'd: 'life, Q: 'life, O, S, Report: Report> Session<'i, 'life, 'd, Q, Report, Borrowed<'i, O>, S, O::Provider>
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>
impl<'i, 'life: 'i, 'd: 'life, Q: Startup + 'life, S, Report: Report> Session<'i, 'life, 'd, Q, Report, (), S>
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)
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>
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>
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> 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