Function ic_cdk::api::call::result[][src]

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.