async fn request_status_once(
        &self,
        request_id: MessageId,
        deadline: Instant,
        canister_id: &CanisterId,
    ) -> Result<CBOR, String> {
        let path = Path::new(vec!["request_status".into(), request_id.into()]);
        let status_request_body = self
            .prepare_read_state(&[path])
            .map_err(|e| format!("Failed to prepare read state: {:?}", e))?;

        let bytes = self
            .http_client
            .post_with_response(
                &self.url,
                &read_state_path(*canister_id),
                status_request_body,
                tokio::time::Instant::from_std(deadline),
            )
            .await?;
        bytes_to_cbor(bytes)
    }
/// Requests the status of a pending request once.
///
/// This is intended to be used in a loop until a final state is reached.
///
/// Returns the entire CBOR value from the response, without trying to
/// interpret it.
Requests the status of a pending request once.
This is intended to be used in a loop until a final state is reached.

Returns the entire CBOR value from the response, without trying to
interpret it.
Requests the status of a pending request once . This is intended to be used in a loop until a final state is reached . Returns the entire CBOR value from the response without trying to interpret it .
async fn request_status_once(
        &self,
        request_id: MessageId,
        deadline: Instant,
        canister_id: &CanisterId,
    ) -> Result<CBOR, String> {
        let path = Path::new(vec!["request_status".into(), request_id.into()]);
        let status_request_body = self
            .prepare_read_state(&[path])
            .map_err(|e| format!("Failed to prepare read state: {:?}", e))?;
        let bytes = self
            .http_client
            .post_with_response(
                &self.url,
                &read_state_path(*canister_id),
                status_request_body,
                tokio::time::Instant::from_std(deadline),
            )
            .await?;
        bytes_to_cbor(bytes)
    }
async fn request_status_once ( & self , request_id : MessageId , deadline : Instant , canister_id : & CanisterId , ) -> Result < CBOR , String > { let path = Path :: new ( vec ! [ " " into ( ) request_id into ( ) ] ) ; let status_request_body = self . prepare_read_state ( & [ path ] ) . map_err ( | e | format ! ( " " e ) ) ? ; let bytes = self . http_client . post_with_response ( & self . url , & read_state_path ( * canister_id ) , status_request_body , tokio :: time :: Instant :: from_std ( deadline ) , ) . await ? ; bytes_to_cbor ( bytes ) }
Requests the status of a pending request once.
Requests the status of a pending request once .
&self
request_id
MessageId
deadline
Instant
canister_id
&CanisterId
&self
request_id
MessageId
deadline
Instant
canister_id
&CanisterId