Enum json_job_dispatch::JobResult
source · [−]pub enum JobResult {
Accept,
Defer(String),
Reject(String),
Fail(Box<dyn Error + Send + 'static>),
Restart,
Done,
}
Expand description
Results from an event.
Variants
Accept
The event was accepted and acted upon.
Defer(String)
The event was deferred until a later time for the given reason.
Reject(String)
The event was rejected for the given reason.
Fail(Box<dyn Error + Send + 'static>)
The event failed with the given error.
Restart
The director should be restarted.
Done
The event was the last one which should be processed.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for JobResult
impl Send for JobResult
impl !Sync for JobResult
impl Unpin for JobResult
impl !UnwindSafe for JobResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more