IntoWorkerResult

Trait IntoWorkerResult 

Source
pub trait IntoWorkerResult {
    // Required method
    fn into_worker_result(self) -> Result<(), GenericError>;
}
Expand description

An output type that a function-based worker can produce.

Implemented for () (a worker that can’t fail) and Result<(), GenericError> (one that can), so both forms can be passed to noninterruptible_worker and interruptible_worker without wrapping.

Required Methods§

Source

fn into_worker_result(self) -> Result<(), GenericError>

Converts this output into a worker result.

Implementations on Foreign Types§

Source§

impl IntoWorkerResult for Result<(), GenericError>

Source§

fn into_worker_result(self) -> Result<(), GenericError>

Source§

impl IntoWorkerResult for ()

Source§

fn into_worker_result(self) -> Result<(), GenericError>

Implementors§