pub enum ReplayItem<A> {
AwaitOne {
_await: String,
},
AwaitAny {
_await_any: Vec<String>,
},
Action(A),
}Expand description
A replay item: either an action or an await marker.
When deserializing, this uses untagged enum representation so that:
{"_await": "pattern"}becomesAwaitOne{"_await_any": [...]}becomesAwaitAny- Any other JSON becomes
Action(A)
Variants§
AwaitOne
Pause replay until an action matching the glob pattern is dispatched.
Supports * as wildcard (e.g., "*DidLoad" matches "WeatherDidLoad").
AwaitAny
Pause replay until any of the patterns match.
Action(A)
A regular action to dispatch.
Implementations§
Source§impl<A> ReplayItem<A>
impl<A> ReplayItem<A>
Trait Implementations§
Source§impl<A: Clone> Clone for ReplayItem<A>
impl<A: Clone> Clone for ReplayItem<A>
Source§fn clone(&self) -> ReplayItem<A>
fn clone(&self) -> ReplayItem<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Debug> Debug for ReplayItem<A>
impl<A: Debug> Debug for ReplayItem<A>
Source§impl<'de, A> Deserialize<'de> for ReplayItem<A>where
A: Deserialize<'de>,
impl<'de, A> Deserialize<'de> for ReplayItem<A>where
A: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<A> Freeze for ReplayItem<A>where
A: Freeze,
impl<A> RefUnwindSafe for ReplayItem<A>where
A: RefUnwindSafe,
impl<A> Send for ReplayItem<A>where
A: Send,
impl<A> Sync for ReplayItem<A>where
A: Sync,
impl<A> Unpin for ReplayItem<A>where
A: Unpin,
impl<A> UnsafeUnpin for ReplayItem<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for ReplayItem<A>where
A: UnwindSafe,
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