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§
Sourcefn into_worker_result(self) -> Result<(), GenericError>
fn into_worker_result(self) -> Result<(), GenericError>
Converts this output into a worker result.