pub enum HostRequest {
Show 21 variants
Handshake {
version: u8,
},
GetNonProductAccounts,
FeatureSupported {
feature_data: Vec<u8>,
},
LocalStorageRead {
key: String,
},
LocalStorageWrite {
key: String,
value: Vec<u8>,
},
LocalStorageClear {
key: String,
},
SignPayload {
public_key: Vec<u8>,
payload: Vec<u8>,
},
SignRaw {
public_key: Vec<u8>,
data: Vec<u8>,
},
CreateTransaction {
payload: Vec<u8>,
},
NavigateTo {
url: String,
},
PushNotification {
text: String,
deeplink: Option<String>,
},
AccountConnectionStatusStart,
JsonRpcSend {
data: Vec<u8>,
},
JsonRpcSubscribeStart {
data: Vec<u8>,
},
ChainHeadFollowStart {
genesis_hash: Vec<u8>,
with_runtime: bool,
},
ChainHeadRequest {
tag: u8,
genesis_hash: Vec<u8>,
follow_sub_id: String,
data: Value,
},
ChainSpecRequest {
tag: u8,
genesis_hash: Vec<u8>,
},
ChainTxBroadcast {
genesis_hash: Vec<u8>,
transaction: Vec<u8>,
},
ChainTxStop {
genesis_hash: Vec<u8>,
operation_id: String,
},
Unimplemented {
tag: u8,
},
Unknown {
tag: u8,
},
}Expand description
Decoded incoming request from the app.
Variants§
Handshake
GetNonProductAccounts
FeatureSupported
LocalStorageRead
LocalStorageWrite
LocalStorageClear
SignPayload
SignRaw
CreateTransaction
PushNotification
AccountConnectionStatusStart
JsonRpcSend
JsonRpcSubscribeStart
ChainHeadFollowStart
chainHead_v1_follow start: genesis hash + withRuntime flag
ChainHeadRequest
chainHead request with genesis hash, follow subscription ID, and block hash. Used for header (tag 80), body (82), unpin (88 - hashes instead of hash).
ChainSpecRequest
chainSpec request with just genesis hash (tags 94, 96, 98).
ChainTxBroadcast
Transaction broadcast (tag 100): genesis hash + transaction hex bytes.
ChainTxStop
Transaction stop (tag 102): genesis hash + operation ID.
Unimplemented
A request we recognize by tag but don’t handle yet.
Unknown
A tag we don’t recognize at all.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostRequest
impl RefUnwindSafe for HostRequest
impl Send for HostRequest
impl Sync for HostRequest
impl Unpin for HostRequest
impl UnsafeUnpin for HostRequest
impl UnwindSafe for HostRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more