Enum oasis_core_runtime::types::Body
source · pub enum Body {
Show 62 variants
Empty {},
Error(Error),
RuntimeInfoRequest(RuntimeInfoRequest),
RuntimeInfoResponse(RuntimeInfoResponse),
RuntimePingRequest {},
RuntimeShutdownRequest {},
RuntimeAbortRequest {},
RuntimeAbortResponse {},
RuntimeCapabilityTEERakInitRequest {
target_info: Vec<u8>,
},
RuntimeCapabilityTEERakInitResponse {},
RuntimeCapabilityTEERakReportRequest {},
RuntimeCapabilityTEERakReportResponse {
rak_pub: PublicKey,
rek_pub: PublicKey,
report: Vec<u8>,
nonce: String,
},
RuntimeCapabilityTEERakAvrRequest {
avr: AVR,
},
RuntimeCapabilityTEERakAvrResponse {},
RuntimeCapabilityTEERakQuoteRequest {
quote: Quote,
},
RuntimeCapabilityTEERakQuoteResponse {
height: u64,
signature: Signature,
},
RuntimeCapabilityTEEUpdateEndorsementRequest {
ect: EndorsedCapabilityTEE,
},
RuntimeCapabilityTEEUpdateEndorsementResponse {},
RuntimeRPCCallRequest {
request: Vec<u8>,
kind: Kind,
peer_id: Vec<u8>,
},
RuntimeRPCCallResponse {
response: Vec<u8>,
},
RuntimeLocalRPCCallRequest {
request: Vec<u8>,
},
RuntimeLocalRPCCallResponse {
response: Vec<u8>,
},
RuntimeCheckTxBatchRequest {
consensus_block: LightBlock,
inputs: TxnBatch,
block: Block,
epoch: EpochTime,
max_messages: u32,
},
RuntimeCheckTxBatchResponse {
results: Vec<CheckTxResult>,
},
RuntimeExecuteTxBatchRequest {
mode: ExecutionMode,
consensus_block: LightBlock,
round_results: RoundResults,
io_root: Hash,
inputs: Option<TxnBatch>,
in_msgs: Vec<IncomingMessage>,
block: Block,
epoch: EpochTime,
max_messages: u32,
},
RuntimeExecuteTxBatchResponse {
batch: ComputedBatch,
tx_hashes: Vec<Hash>,
tx_reject_hashes: Vec<Hash>,
tx_input_root: Hash,
tx_input_write_log: WriteLog,
},
RuntimeKeyManagerStatusUpdateRequest {
status: Status,
},
RuntimeKeyManagerStatusUpdateResponse {},
RuntimeKeyManagerQuotePolicyUpdateRequest {
policy: QuotePolicy,
},
RuntimeKeyManagerQuotePolicyUpdateResponse {},
RuntimeQueryRequest {
consensus_block: LightBlock,
header: Header,
epoch: EpochTime,
max_messages: u32,
method: String,
args: Vec<u8>,
},
RuntimeQueryResponse {
data: Vec<u8>,
},
RuntimeConsensusSyncRequest {
height: u64,
},
RuntimeConsensusSyncResponse {},
RuntimeNotifyRequest {
runtime_block: Option<AnnotatedBlock>,
runtime_event: Option<RuntimeNotifyEvent>,
},
RuntimeNotifyResponse {},
HostRPCCallRequest {
endpoint: String,
request: Vec<u8>,
kind: Kind,
nodes: Vec<PublicKey>,
peer_feedback: Option<PeerFeedback>,
},
HostRPCCallResponse {
response: Vec<u8>,
node: PublicKey,
},
HostStorageSyncRequest(StorageSyncRequestWithEndpoint),
HostStorageSyncResponse(StorageSyncResponse),
HostLocalStorageGetRequest {
key: Vec<u8>,
},
HostLocalStorageGetResponse {
value: Vec<u8>,
},
HostLocalStorageSetRequest {
key: Vec<u8>,
value: Vec<u8>,
},
HostLocalStorageSetResponse {},
HostFetchConsensusBlockRequest {
height: u64,
},
HostFetchConsensusBlockResponse {
block: LightBlock,
},
HostFetchConsensusEventsRequest(HostFetchConsensusEventsRequest),
HostFetchConsensusEventsResponse(HostFetchConsensusEventsResponse),
HostFetchTxBatchRequest {
offset: Option<Hash>,
limit: u32,
},
HostFetchTxBatchResponse {
batch: Option<TxnBatch>,
},
HostFetchBlockMetadataTxRequest {
height: u64,
},
HostFetchBlockMetadataTxResponse {
signed_tx: SignedTransaction,
proof: Proof,
},
HostFetchGenesisHeightRequest {},
HostFetchGenesisHeightResponse {
height: u64,
},
HostProveFreshnessRequest {
blob: Vec<u8>,
},
HostProveFreshnessResponse {
signed_tx: SignedTransaction,
proof: Proof,
},
HostIdentityRequest {},
HostIdentityResponse {
node_id: PublicKey,
},
HostSubmitTxRequest {
runtime_id: Namespace,
data: Vec<u8>,
wait: bool,
prove: bool,
},
HostSubmitTxResponse {
output: Vec<u8>,
round: u64,
batch_order: u32,
proof: Option<Proof>,
},
HostRegisterNotifyRequest {
runtime_block: bool,
runtime_event: Option<RegisterNotifyRuntimeEvent>,
},
HostRegisterNotifyResponse {},
}
Expand description
Runtime host protocol message body.
Variants§
Empty
Error(Error)
RuntimeInfoRequest(RuntimeInfoRequest)
RuntimeInfoResponse(RuntimeInfoResponse)
RuntimePingRequest
RuntimeShutdownRequest
RuntimeAbortRequest
RuntimeAbortResponse
RuntimeCapabilityTEERakInitRequest
RuntimeCapabilityTEERakInitResponse
RuntimeCapabilityTEERakReportRequest
RuntimeCapabilityTEERakReportResponse
RuntimeCapabilityTEERakAvrRequest
RuntimeCapabilityTEERakAvrResponse
RuntimeCapabilityTEERakQuoteRequest
RuntimeCapabilityTEERakQuoteResponse
RuntimeCapabilityTEEUpdateEndorsementRequest
Fields
RuntimeCapabilityTEEUpdateEndorsementResponse
RuntimeRPCCallRequest
RuntimeRPCCallResponse
RuntimeLocalRPCCallRequest
RuntimeLocalRPCCallResponse
RuntimeCheckTxBatchRequest
RuntimeCheckTxBatchResponse
Fields
§
results: Vec<CheckTxResult>
RuntimeExecuteTxBatchRequest
Fields
§
mode: ExecutionMode
§
consensus_block: LightBlock
§
round_results: RoundResults
§
in_msgs: Vec<IncomingMessage>
RuntimeExecuteTxBatchResponse
Fields
§
batch: ComputedBatch
RuntimeKeyManagerStatusUpdateRequest
RuntimeKeyManagerStatusUpdateResponse
RuntimeKeyManagerQuotePolicyUpdateRequest
Fields
§
policy: QuotePolicy
RuntimeKeyManagerQuotePolicyUpdateResponse
RuntimeQueryRequest
Fields
§
consensus_block: LightBlock
RuntimeQueryResponse
RuntimeConsensusSyncRequest
RuntimeConsensusSyncResponse
RuntimeNotifyRequest
RuntimeNotifyResponse
HostRPCCallRequest
Fields
§
peer_feedback: Option<PeerFeedback>
HostRPCCallResponse
HostStorageSyncRequest(StorageSyncRequestWithEndpoint)
HostStorageSyncResponse(StorageSyncResponse)
HostLocalStorageGetRequest
HostLocalStorageGetResponse
HostLocalStorageSetRequest
HostLocalStorageSetResponse
HostFetchConsensusBlockRequest
HostFetchConsensusBlockResponse
Fields
§
block: LightBlock
HostFetchConsensusEventsRequest(HostFetchConsensusEventsRequest)
HostFetchConsensusEventsResponse(HostFetchConsensusEventsResponse)
HostFetchTxBatchRequest
HostFetchTxBatchResponse
HostFetchBlockMetadataTxRequest
HostFetchBlockMetadataTxResponse
HostFetchGenesisHeightRequest
HostFetchGenesisHeightResponse
HostProveFreshnessRequest
HostProveFreshnessResponse
HostIdentityRequest
HostIdentityResponse
HostSubmitTxRequest
HostSubmitTxResponse
HostRegisterNotifyRequest
HostRegisterNotifyResponse
Trait Implementations§
source§impl Decode for Body
impl Decode for Body
source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a missing/null/undefined value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a given CBOR value, calling
try_default
in case the value is null or
undefined.source§impl EncodeAsMap for Body
impl EncodeAsMap for Body
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
Encode the type into a CBOR Map.
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
Encode the type into a CBOR Map, returning the map items.
Auto Trait Implementations§
impl Freeze for Body
impl RefUnwindSafe for Body
impl Send for Body
impl Sync for Body
impl Unpin for Body
impl UnwindSafe for Body
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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