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

Create an accept result.

Create a deferral result.

Create a rejecting result.

Create a failure.

Create a restart result.

Create a completion result.

Combine two handler results into one.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.