[−][src]Enum json_job_dispatch::HandlerResult
Results from an event.
Variants
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.
The event failed with the given error.
The director should be restarted.
The event was the last one which should be processed.
Methods
impl HandlerResult
[src]
pub fn accept() -> Self
[src]
Create an accept result.
pub fn defer<M>(msg: M) -> Self where
M: Into<String>,
[src]
M: Into<String>,
Create a deferral result.
pub fn reject<M>(msg: M) -> Self where
M: Into<String>,
[src]
M: Into<String>,
Create a rejecting result.
pub fn fail<E>(err: E) -> Self where
E: Into<Box<dyn Error + Send + Sync + 'static>>,
[src]
E: Into<Box<dyn Error + Send + Sync + 'static>>,
Create a failure.
pub fn restart() -> Self
[src]
Create a restart result.
pub fn done() -> Self
[src]
Create a completion result.
pub fn combine(self, other: Self) -> Self
[src]
Combine two handler results into one.
Trait Implementations
Auto Trait Implementations
impl Send for HandlerResult
impl !Sync for HandlerResult
impl Unpin for HandlerResult
impl !UnwindSafe for HandlerResult
impl !RefUnwindSafe for HandlerResult
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,