Trait ic_kit_sys::ic0::runtime::Ic0CallHandlerProxy
source · [−]pub trait Ic0CallHandlerProxy {
Show 46 methods
fn msg_arg_data_size(&mut self) -> Result<isize, String>;
fn msg_arg_data_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>;
fn msg_caller_size(&mut self) -> Result<isize, String>;
fn msg_caller_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>;
fn msg_reject_code(&mut self) -> Result<i32, String>;
fn msg_reject_msg_size(&mut self) -> Result<isize, String>;
fn msg_reject_msg_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>;
fn msg_reply_data_append(
&mut self,
src: isize,
size: isize
) -> Result<(), String>;
fn msg_reply(&mut self) -> Result<(), String>;
fn msg_reject(&mut self, src: isize, size: isize) -> Result<(), String>;
fn msg_cycles_available(&mut self) -> Result<i64, String>;
fn msg_cycles_available128(&mut self, dst: isize) -> Result<(), String>;
fn msg_cycles_refunded(&mut self) -> Result<i64, String>;
fn msg_cycles_refunded128(&mut self, dst: isize) -> Result<(), String>;
fn msg_cycles_accept(&mut self, max_amount: i64) -> Result<i64, String>;
fn msg_cycles_accept128(
&mut self,
max_amount_high: i64,
max_amount_low: i64,
dst: isize
) -> Result<(), String>;
fn canister_self_size(&mut self) -> Result<isize, String>;
fn canister_self_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>;
fn canister_cycle_balance(&mut self) -> Result<i64, String>;
fn canister_cycle_balance128(&mut self, dst: isize) -> Result<(), String>;
fn canister_status(&mut self) -> Result<i32, String>;
fn msg_method_name_size(&mut self) -> Result<isize, String>;
fn msg_method_name_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>;
fn accept_message(&mut self) -> Result<(), String>;
fn call_new(
&mut self,
callee_src: isize,
callee_size: isize,
name_src: isize,
name_size: isize,
reply_fun: isize,
reply_env: isize,
reject_fun: isize,
reject_env: isize
) -> Result<(), String>;
fn call_on_cleanup(&mut self, fun: isize, env: isize) -> Result<(), String>;
fn call_data_append(&mut self, src: isize, size: isize) -> Result<(), String>;
fn call_cycles_add(&mut self, amount: i64) -> Result<(), String>;
fn call_cycles_add128(
&mut self,
amount_high: i64,
amount_low: i64
) -> Result<(), String>;
fn call_perform(&mut self) -> Result<i32, String>;
fn stable_size(&mut self) -> Result<i32, String>;
fn stable_grow(&mut self, new_pages: i32) -> Result<i32, String>;
fn stable_write(
&mut self,
offset: i32,
src: isize,
size: isize
) -> Result<(), String>;
fn stable_read(
&mut self,
dst: isize,
offset: i32,
size: isize
) -> Result<(), String>;
fn stable64_size(&mut self) -> Result<i64, String>;
fn stable64_grow(&mut self, new_pages: i64) -> Result<i64, String>;
fn stable64_write(
&mut self,
offset: i64,
src: i64,
size: i64
) -> Result<(), String>;
fn stable64_read(
&mut self,
dst: i64,
offset: i64,
size: i64
) -> Result<(), String>;
fn certified_data_set(
&mut self,
src: isize,
size: isize
) -> Result<(), String>;
fn data_certificate_present(&mut self) -> Result<i32, String>;
fn data_certificate_size(&mut self) -> Result<isize, String>;
fn data_certificate_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>;
fn time(&mut self) -> Result<i64, String>;
fn performance_counter(&mut self, counter_type: i32) -> Result<i64, String>;
fn debug_print(&mut self, src: isize, size: isize) -> Result<(), String>;
fn trap(&mut self, src: isize, size: isize) -> Result<(), String>;
}
Expand description
The Ic0CallHandler on the main thread.
Required Methods
source
fn msg_arg_data_size(&mut self) -> Result<isize, String>
sourcefn msg_arg_data_copy(
fn msg_arg_data_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>
source
fn msg_caller_size(&mut self) -> Result<isize, String>
source
fn msg_reject_code(&mut self) -> Result<i32, String>
source
fn msg_reject_msg_size(&mut self) -> Result<isize, String>
sourcefn msg_reject_msg_copy(
fn msg_reject_msg_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>
source
fn msg_cycles_available(&mut self) -> Result<i64, String>
source
fn msg_cycles_refunded(&mut self) -> Result<i64, String>
sourcefn msg_cycles_accept128(
fn msg_cycles_accept128(
&mut self,
max_amount_high: i64,
max_amount_low: i64,
dst: isize
) -> Result<(), String>
source
fn canister_self_size(&mut self) -> Result<isize, String>
sourcefn canister_self_copy(
fn canister_self_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>
source
fn canister_cycle_balance(&mut self) -> Result<i64, String>
source
fn canister_status(&mut self) -> Result<i32, String>
source
fn msg_method_name_size(&mut self) -> Result<isize, String>
sourcefn msg_method_name_copy(
fn msg_method_name_copy(
&mut self,
dst: isize,
offset: isize,
size: isize
) -> Result<(), String>
source
fn accept_message(&mut self) -> Result<(), String>
sourcefn call_new(
fn call_new(
&mut self,
callee_src: isize,
callee_size: isize,
name_src: isize,
name_size: isize,
reply_fun: isize,
reply_env: isize,
reject_fun: isize,
reject_env: isize
) -> Result<(), String>
source
fn call_perform(&mut self) -> Result<i32, String>
source
fn stable_size(&mut self) -> Result<i32, String>
source
fn stable64_size(&mut self) -> Result<i64, String>
source
fn data_certificate_present(&mut self) -> Result<i32, String>
source