pub struct Actions<A, S, C> { /* private fields */ }Implementations§
Source§impl<A, S, C> Actions<A, S, C>
impl<A, S, C> Actions<A, S, C>
Sourcepub fn once_epic<E>(
&self,
epic: E,
) -> impl Future<Output = Result<A, Error>> + use<A, S, C, E>
pub fn once_epic<E>( &self, epic: E, ) -> impl Future<Output = Result<A, Error>> + use<A, S, C, E>
Wait once the epic emits its first action, remove the epic and return the action. This is guarantted to see all actions that are dispatched after this call has returned the future.
Sourcepub fn once<F>(
&self,
predicate: F,
) -> impl Future<Output = Result<A, Error>> + use<A, S, C, F>
pub fn once<F>( &self, predicate: F, ) -> impl Future<Output = Result<A, Error>> + use<A, S, C, F>
Wait for predicate to match once and return the action it mached. This is guarantted to see all actions that are dispatched after this call has returned the future.
Trait Implementations§
Auto Trait Implementations§
impl<A, S, C> Freeze for Actions<A, S, C>
impl<A, S, C> RefUnwindSafe for Actions<A, S, C>
impl<A, S, C> Send for Actions<A, S, C>
impl<A, S, C> Sync for Actions<A, S, C>
impl<A, S, C> Unpin for Actions<A, S, C>
impl<A, S, C> UnsafeUnpin for Actions<A, S, C>
impl<A, S, C> UnwindSafe for Actions<A, S, C>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more