pub fn execute_ingress(
        &self,
        canister_id: CanisterId,
        method: impl ToString,
        payload: Vec<u8>,
    ) -> Result<WasmResult, UserError> {
        let msg_id = self.send_ingress(canister_id, method, payload);
        self.await_ingress(msg_id)
    }
/// Executes an ingress message on the canister with the specified ID.
///
/// This function is synchronous, it blocks until the result of the ingress
/// message is known. The function returns this result.
///
/// # Panics
///
/// This function panics if the status was not ready in a reasonable amount
/// of time (typically, a few seconds).
Executes an ingress message on the canister with the specified ID.
This function is synchronous, it blocks until the result of the ingress
message is known. The function returns this result.
Executes an ingress message on the canister with the specified ID . This function is synchronous it blocks until the result of the ingress message is known . The function returns this result .
pub fn execute_ingress(
        &self,
        canister_id: CanisterId,
        method: impl ToString,
        payload: Vec<u8>,
    ) -> Result<WasmResult, UserError> {
        let msg_id = self.send_ingress(canister_id, method, payload);
        self.await_ingress(msg_id)
    }
pub fn execute_ingress ( & self , canister_id : CanisterId , method : impl ToString , payload : Vec < u8 > , ) -> Result < WasmResult , UserError > { let msg_id = self . send_ingress ( canister_id , method , payload ) ; self . await_ingress ( msg_id ) }
Executes an ingress message on the canister with the specified ID.
Executes an ingress message on the canister with the specified ID .
&self
canister_id
CanisterId
method
impl ToString
payload
Vec<u8>
&self
canister_id
CanisterId
method
impl ToString
payload
Vec<u8>
panics
This function panics if the status was not ready in a reasonable amount
of time (typically, a few seconds).
This function panics if the status was not ready in a reasonable amount of time ( typically a few seconds ) .