/// Sends an ingress message to the canister with the specified ID.
///
/// This function is asynchronous. It returns the ID of the ingress message
/// that can be awaited later with [await_ingress].
Sends an ingress message to the canister with the specified ID.
This function is asynchronous. It returns the ID of the ingress message
that can be awaited later with [await_ingress].
Sends an ingress message to the canister with the specified ID . This function is asynchronous . It returns the ID of the ingress message that can be awaited later with [ await_ingress ] .
pub fn send_ingress(
        &self,
        canister_id: CanisterId,
        method: impl ToString,
        payload: Vec<u8>,
    ) -> MessageId {
        self.nonce.set(self.nonce.get() + 1);
        let msg = SignedIngressBuilder::new()
            .canister_id(canister_id)
            .method_name(method.to_string())
            .method_payload(payload)
            .nonce(self.nonce.get())
            .build();
        let msg_id = msg.id();
        self.send_signed_ingress(msg);
        msg_id
    }
pub fn send_ingress ( & self , canister_id : CanisterId , method : impl ToString , payload : Vec < u8 > , ) -> MessageId { self . nonce . set ( self . nonce . get ( ) + 1 ) ; let msg = SignedIngressBuilder :: new ( ) . canister_id ( canister_id ) . method_name ( method . to_string ( ) ) . method_payload ( payload ) . nonce ( self . nonce . get ( ) ) . build ( ) ; let msg_id = msg . id ( ) ; self . send_signed_ingress ( msg ) ; msg_id }
Sends an ingress message to the canister with the specified ID.
Sends an ingress message to the canister with the specified ID .
&self
canister_id
CanisterId
method
impl ToString
payload
Vec<u8>