Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, Error>;
Expand description

📦 客户端结果类型别名

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(CoreError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(CoreError)

Contains the error value

Trait Implementations§

Source§

impl From<Config> for Result<Client>

Client的便利构造函数

Source§

fn from(config: Config) -> Self

Converts to this type from the input type.