Skip to main content

RegistryResult

Type Alias RegistryResult 

Source
pub type RegistryResult<T> = Result<T, Box<RegistryError>>;
Expand description

Heap-backed result for the comparatively rich structured error. 对字段较多的结构化错误使用堆分配的返回结果。

Aliased Type§

pub enum RegistryResult<T> {
    Ok(T),
    Err(Box<RegistryError>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<RegistryError>)

Contains the error value