pub type UnitResult<T = ()> = Result<T, Box<dyn Error + Send + Sync + 'static>>;Expand description
The result returned by application-defined execution-unit operations.
Errors must be thread-safe and own every value they reference so a runtime may move them across worker boundaries and retain their source chains.
Aliased Type§
pub enum UnitResult<T = ()> {
Ok(T),
Err(Box<dyn Error + Send + Sync>),
}