Request

Enum Request 

Source
pub enum Request {
Show 46 variants msg_arg_data_size {}, msg_arg_data_copy { dst: isize, offset: isize, size: isize, }, msg_caller_size {}, msg_caller_copy { dst: isize, offset: isize, size: isize, }, msg_reject_code {}, msg_reject_msg_size {}, msg_reject_msg_copy { dst: isize, offset: isize, size: isize, }, msg_reply_data_append { src: isize, size: isize, }, msg_reply {}, msg_reject { src: isize, size: isize, }, msg_cycles_available {}, msg_cycles_available128 { dst: isize, }, msg_cycles_refunded {}, msg_cycles_refunded128 { dst: isize, }, msg_cycles_accept { max_amount: i64, }, msg_cycles_accept128 { max_amount_high: i64, max_amount_low: i64, dst: isize, }, canister_self_size {}, canister_self_copy { dst: isize, offset: isize, size: isize, }, canister_cycle_balance {}, canister_cycle_balance128 { dst: isize, }, canister_status {}, msg_method_name_size {}, msg_method_name_copy { dst: isize, offset: isize, size: isize, }, accept_message {}, call_new { callee_src: isize, callee_size: isize, name_src: isize, name_size: isize, reply_fun: isize, reply_env: isize, reject_fun: isize, reject_env: isize, }, call_on_cleanup { fun: isize, env: isize, }, call_data_append { src: isize, size: isize, }, call_cycles_add { amount: i64, }, call_cycles_add128 { amount_high: i64, amount_low: i64, }, call_perform {}, stable_size {}, stable_grow { new_pages: i32, }, stable_write { offset: i32, src: isize, size: isize, }, stable_read { dst: isize, offset: i32, size: isize, }, stable64_size {}, stable64_grow { new_pages: i64, }, stable64_write { offset: i64, src: i64, size: i64, }, stable64_read { dst: i64, offset: i64, size: i64, }, certified_data_set { src: isize, size: isize, }, data_certificate_present {}, data_certificate_size {}, data_certificate_copy { dst: isize, offset: isize, size: isize, }, time {}, performance_counter { counter_type: i32, }, debug_print { src: isize, size: isize, }, trap { src: isize, size: isize, },
}
Expand description

A request from the canister to the handler.

Variants§

§

msg_arg_data_size

§

msg_arg_data_copy

Fields

§dst: isize
§offset: isize
§size: isize
§

msg_caller_size

§

msg_caller_copy

Fields

§dst: isize
§offset: isize
§size: isize
§

msg_reject_code

§

msg_reject_msg_size

§

msg_reject_msg_copy

Fields

§dst: isize
§offset: isize
§size: isize
§

msg_reply_data_append

Fields

§src: isize
§size: isize
§

msg_reply

§

msg_reject

Fields

§src: isize
§size: isize
§

msg_cycles_available

§

msg_cycles_available128

Fields

§dst: isize
§

msg_cycles_refunded

§

msg_cycles_refunded128

Fields

§dst: isize
§

msg_cycles_accept

Fields

§max_amount: i64
§

msg_cycles_accept128

Fields

§max_amount_high: i64
§max_amount_low: i64
§dst: isize
§

canister_self_size

§

canister_self_copy

Fields

§dst: isize
§offset: isize
§size: isize
§

canister_cycle_balance

§

canister_cycle_balance128

Fields

§dst: isize
§

canister_status

§

msg_method_name_size

§

msg_method_name_copy

Fields

§dst: isize
§offset: isize
§size: isize
§

accept_message

§

call_new

Fields

§callee_src: isize
§callee_size: isize
§name_src: isize
§name_size: isize
§reply_fun: isize
§reply_env: isize
§reject_fun: isize
§reject_env: isize
§

call_on_cleanup

Fields

§fun: isize
§env: isize
§

call_data_append

Fields

§src: isize
§size: isize
§

call_cycles_add

Fields

§amount: i64
§

call_cycles_add128

Fields

§amount_high: i64
§amount_low: i64
§

call_perform

§

stable_size

§

stable_grow

Fields

§new_pages: i32
§

stable_write

Fields

§offset: i32
§src: isize
§size: isize
§

stable_read

Fields

§dst: isize
§offset: i32
§size: isize
§

stable64_size

§

stable64_grow

Fields

§new_pages: i64
§

stable64_write

Fields

§offset: i64
§src: i64
§size: i64
§

stable64_read

Fields

§dst: i64
§offset: i64
§size: i64
§

certified_data_set

Fields

§src: isize
§size: isize
§

data_certificate_present

§

data_certificate_size

§

data_certificate_copy

Fields

§dst: isize
§offset: isize
§size: isize
§

time

§

performance_counter

Fields

§counter_type: i32
§

debug_print

Fields

§src: isize
§size: isize
§

trap

Fields

§src: isize
§size: isize

Implementations§

Source§

impl Request

Source

pub fn proxy<H: Ic0CallHandlerProxy>(self, handler: &mut H) -> Response

Forward a request to a proxy

Trait Implementations§

Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.