pub enum TaskNextAction {
Continue,
Stop,
ErrorContinue(Error),
}
Expand description
The result of a single iteration of the service task
Variants§
Continue
Request the task to be run again
Stop
Request the task to be abandoned
ErrorContinue(Error)
Request the task to be run again, but report an error
Implementations§
Source§impl TaskNextAction
impl TaskNextAction
Sourcepub fn always_continue<T, E: Into<Error>>(res: Result<T, E>) -> TaskNextAction
pub fn always_continue<T, E: Into<Error>>(res: Result<T, E>) -> TaskNextAction
Creates a TaskRunResult
from a Result
where Ok
means Continue
and any error is reported
Trait Implementations§
Source§impl Debug for TaskNextAction
impl Debug for TaskNextAction
Auto Trait Implementations§
impl Freeze for TaskNextAction
impl RefUnwindSafe for TaskNextAction
impl Send for TaskNextAction
impl Sync for TaskNextAction
impl Unpin for TaskNextAction
impl UnwindSafe for TaskNextAction
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