pub enum GoTo<N = ()> {
Next(N),
Delay {
next: N,
delay: Duration,
},
Done(N),
}
Expand description
Allows control of the next step
Variants§
Next(N)
Go to the next step immediately
Delay
Delay the next step for some time
Done(N)
Complete execution
Trait Implementations§
Source§impl<'de, N> Deserialize<'de> for GoTo<N>where
N: Deserialize<'de>,
impl<'de, N> Deserialize<'de> for GoTo<N>where
N: 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<N> Freeze for GoTo<N>where
N: Freeze,
impl<N> RefUnwindSafe for GoTo<N>where
N: RefUnwindSafe,
impl<N> Send for GoTo<N>where
N: Send,
impl<N> Sync for GoTo<N>where
N: Sync,
impl<N> Unpin for GoTo<N>where
N: Unpin,
impl<N> UnwindSafe for GoTo<N>where
N: 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