ic_cdk::api::call

Function result

Source
pub fn result<T: for<'a> ArgumentDecoder<'a>>() -> Result<T, String>
Expand description

Returns a result that maps over the call

It will be Ok(T) if the call succeeded (with T being the arg_data), and reject_message() if it failed.