Type Alias ic_cdk::api::call::CallResult

source ·
pub type CallResult<R> = Result<R, (RejectionCode, String)>;
Expand description

The result of a Call.

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

Aliased Type§

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