Type Alias CallResult

Source
pub type CallResult<R> = Result<R, (RejectionCode, String)>;
👎Deprecated since 0.18.0: Please use ic_cdk::call::CallResult instead.
Expand description

The result of a Call.

Errors on the IC have two components; a Code and a message associated with it.

Aliased Type§

pub enum CallResult<R> {
    Ok(R),
    Err((RejectionCode, String)),
}

Variants§

§1.0.0

Ok(R)

Contains the success value

§1.0.0

Err((RejectionCode, String))

Contains the error value