pub enum GoTo<T = ()> {
Next(T),
DelayFor(Duration, T),
Break(T),
Done,
}Expand description
Enum representing the possible transitions in a workflow
Variants§
Next(T)
Proceed to the next step with the given value
DelayFor(Duration, T)
Delay the execution for the specified duration
Break(T)
Break the workflow with the given value
Done
Marks the workflow as done
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for GoTo<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for GoTo<T>where
T: 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<T> Freeze for GoTo<T>where
T: Freeze,
impl<T> RefUnwindSafe for GoTo<T>where
T: RefUnwindSafe,
impl<T> Send for GoTo<T>where
T: Send,
impl<T> Sync for GoTo<T>where
T: Sync,
impl<T> Unpin for GoTo<T>where
T: Unpin,
impl<T> UnwindSafe for GoTo<T>where
T: 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