pub struct ExecutionScheduleRequest {
pub taskid: u64,
}Expand description
ExecutionScheduleRequest finalizes an upload and requests the device to execute the uploaded 3rd party app. The upload must have been completed (i.e. the sum of chunk sizes matches the declared size).
This request is async, potentially returning a response only after confirming with the app.
It will trigger sending a RelayArkToAppRequest with the request content:
- method: “execute”
- params: [task: string]
The request expects a RelayAppToArkResponse with the response content:
If approved: - result = approval = true // CBOR boolean - err_code: 0 - err_str: “”
If denied: - result = approval = false // CBOR boolean - err_code: 0 // No error, deny is valid user choice - err_str: “” // No error, deny is valid user choice
where:
- approval: Whether the user approved or denied the execution request
Note, relayed messages are encrypted and authenticated on the timestamp and request/response id, so there’s no need for further complications.
Fields§
§taskid: u64Task id returned by ExecutionUploadStartResponse
Trait Implementations§
Source§impl Clone for ExecutionScheduleRequest
impl Clone for ExecutionScheduleRequest
Source§fn clone(&self) -> ExecutionScheduleRequest
fn clone(&self) -> ExecutionScheduleRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ExecutionScheduleRequest
Source§impl Debug for ExecutionScheduleRequest
impl Debug for ExecutionScheduleRequest
Source§impl Default for ExecutionScheduleRequest
impl Default for ExecutionScheduleRequest
impl Eq for ExecutionScheduleRequest
Source§impl Hash for ExecutionScheduleRequest
impl Hash for ExecutionScheduleRequest
Source§impl Message for ExecutionScheduleRequest
impl Message for ExecutionScheduleRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.