pub enum ExecutionRequest {
Show 23 variants
LoadContract {
id: UserApplicationId,
callback: Sender<(UserContractCode, UserApplicationDescription)>,
},
LoadService {
id: UserApplicationId,
callback: Sender<(UserServiceCode, UserApplicationDescription)>,
},
ChainBalance {
callback: Sender<Amount>,
},
OwnerBalance {
owner: Owner,
callback: Sender<Amount>,
},
OwnerBalances {
callback: Sender<Vec<(Owner, Amount)>>,
},
BalanceOwners {
callback: Sender<Vec<Owner>>,
},
Transfer {
source: Option<Owner>,
destination: Account,
amount: Amount,
signer: Option<Owner>,
callback: Sender<RawExecutionOutcome<SystemMessage, Amount>>,
},
Claim {
source: Account,
destination: Account,
amount: Amount,
signer: Option<Owner>,
callback: Sender<RawExecutionOutcome<SystemMessage, Amount>>,
},
SystemTimestamp {
callback: Sender<Timestamp>,
},
ChainOwnership {
callback: Sender<ChainOwnership>,
},
ReadValueBytes {
id: UserApplicationId,
key: Vec<u8>,
callback: Sender<Option<Vec<u8>>>,
},
ContainsKey {
id: UserApplicationId,
key: Vec<u8>,
callback: Sender<bool>,
},
ContainsKeys {
id: UserApplicationId,
keys: Vec<Vec<u8>>,
callback: Sender<Vec<bool>>,
},
ReadMultiValuesBytes {
id: UserApplicationId,
keys: Vec<Vec<u8>>,
callback: Sender<Vec<Option<Vec<u8>>>>,
},
FindKeysByPrefix {
id: UserApplicationId,
key_prefix: Vec<u8>,
callback: Sender<Vec<Vec<u8>>>,
},
FindKeyValuesByPrefix {
id: UserApplicationId,
key_prefix: Vec<u8>,
callback: Sender<Vec<(Vec<u8>, Vec<u8>)>>,
},
WriteBatch {
id: UserApplicationId,
batch: Batch,
callback: Sender<()>,
},
OpenChain {
ownership: ChainOwnership,
balance: Amount,
next_message_id: MessageId,
application_permissions: ApplicationPermissions,
callback: Sender<[RawOutgoingMessage<SystemMessage, Amount>; 2]>,
},
CloseChain {
application_id: UserApplicationId,
callback: Sender<Result<(), ExecutionError>>,
},
FetchUrl {
url: String,
callback: Sender<Vec<u8>>,
},
HttpPost {
url: String,
content_type: String,
payload: Vec<u8>,
callback: Sender<Vec<u8>>,
},
ReadBlobContent {
blob_id: BlobId,
callback: Sender<BlobContent>,
},
AssertBlobExists {
blob_id: BlobId,
callback: Sender<()>,
},
}Expand description
Requests to the execution state.
Variants§
LoadContract
LoadService
ChainBalance
OwnerBalance
OwnerBalances
BalanceOwners
Transfer
Fields
§
callback: Sender<RawExecutionOutcome<SystemMessage, Amount>>Claim
Fields
§
callback: Sender<RawExecutionOutcome<SystemMessage, Amount>>SystemTimestamp
ChainOwnership
Fields
§
callback: Sender<ChainOwnership>ReadValueBytes
ContainsKey
ContainsKeys
ReadMultiValuesBytes
FindKeysByPrefix
FindKeyValuesByPrefix
WriteBatch
OpenChain
Fields
§
ownership: ChainOwnership§
application_permissions: ApplicationPermissions§
callback: Sender<[RawOutgoingMessage<SystemMessage, Amount>; 2]>CloseChain
FetchUrl
HttpPost
ReadBlobContent
AssertBlobExists
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionRequest
impl !RefUnwindSafe for ExecutionRequest
impl Send for ExecutionRequest
impl Sync for ExecutionRequest
impl Unpin for ExecutionRequest
impl !UnwindSafe for ExecutionRequest
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
impl<M, I> RuntimeMemory<&mut I> for Mwhere
M: RuntimeMemory<I>,
Source§fn read<'instance>(
&self,
instance: &'instance &mut I,
location: GuestPointer,
length: u32,
) -> Result<Cow<'instance, [u8]>, RuntimeError>
fn read<'instance>( &self, instance: &'instance &mut I, location: GuestPointer, length: u32, ) -> Result<Cow<'instance, [u8]>, RuntimeError>
Reads length bytes from memory from the provided location.
Source§fn write(
&mut self,
instance: &mut &mut I,
location: GuestPointer,
bytes: &[u8],
) -> Result<(), RuntimeError>
fn write( &mut self, instance: &mut &mut I, location: GuestPointer, bytes: &[u8], ) -> Result<(), RuntimeError>
Writes the bytes to memory at the provided location.