pub trait CallHandler {
// Required methods
fn accept(&self, canister_id: &Principal, method: &str) -> bool;
fn perform(
&self,
caller: &Principal,
cycles: u64,
canister_id: &Principal,
method: &str,
args_raw: &Vec<u8>,
ctx: Option<&mut MockContext>,
) -> (CallResult<Vec<u8>>, u64);
}Expand description
Anything that could be used to simulate a inter-canister call.