pub enum GoTo<T = ()> {
Next(T),
DelayFor(Duration, T),
Done,
Break(T),
ContinueAt(String),
}Variants§
Next(T)
DelayFor(Duration, T)
Done
Break(T)
Breaks the current task execution
ContinueAt(String)
Execution will continue in another task identified by the String Returning this does not guarantee that the task will be executed. It may be an invalid task id, or the task may never be scheduled.
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