pub enum Body {
Show 54 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, }, RuntimeRPCCallRequest { request: Vec<u8>, kind: Kind, }, 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 {}, 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, },
}
Expand description

Runtime host protocol message body.

Variants§

§

Empty

§

Error(Error)

§

RuntimeInfoRequest(RuntimeInfoRequest)

§

RuntimeInfoResponse(RuntimeInfoResponse)

§

RuntimePingRequest

§

RuntimeShutdownRequest

§

RuntimeAbortRequest

§

RuntimeAbortResponse

§

RuntimeCapabilityTEERakInitRequest

Fields

§target_info: Vec<u8>
§

RuntimeCapabilityTEERakInitResponse

§

RuntimeCapabilityTEERakReportRequest

§

RuntimeCapabilityTEERakReportResponse

Fields

§rak_pub: PublicKey
§rek_pub: PublicKey
§report: Vec<u8>
§nonce: String
§

RuntimeCapabilityTEERakAvrRequest

Fields

§avr: AVR
§

RuntimeCapabilityTEERakAvrResponse

§

RuntimeCapabilityTEERakQuoteRequest

Fields

§quote: Quote
§

RuntimeCapabilityTEERakQuoteResponse

Fields

§height: u64
§signature: Signature
§

RuntimeRPCCallRequest

Fields

§request: Vec<u8>
§kind: Kind
§

RuntimeRPCCallResponse

Fields

§response: Vec<u8>
§

RuntimeLocalRPCCallRequest

Fields

§request: Vec<u8>
§

RuntimeLocalRPCCallResponse

Fields

§response: Vec<u8>
§

RuntimeCheckTxBatchRequest

Fields

§consensus_block: LightBlock
§inputs: TxnBatch
§block: Block
§max_messages: u32
§

RuntimeCheckTxBatchResponse

Fields

§

RuntimeExecuteTxBatchRequest

Fields

§consensus_block: LightBlock
§round_results: RoundResults
§io_root: Hash
§block: Block
§max_messages: u32
§

RuntimeExecuteTxBatchResponse

Fields

§tx_hashes: Vec<Hash>
§tx_reject_hashes: Vec<Hash>
§tx_input_root: Hash
§tx_input_write_log: WriteLog
§

RuntimeKeyManagerStatusUpdateRequest

Fields

§status: Status
§

RuntimeKeyManagerStatusUpdateResponse

§

RuntimeKeyManagerQuotePolicyUpdateRequest

Fields

§

RuntimeKeyManagerQuotePolicyUpdateResponse

§

RuntimeQueryRequest

Fields

§consensus_block: LightBlock
§header: Header
§max_messages: u32
§method: String
§args: Vec<u8>
§

RuntimeQueryResponse

Fields

§data: Vec<u8>
§

RuntimeConsensusSyncRequest

Fields

§height: u64
§

RuntimeConsensusSyncResponse

§

HostRPCCallRequest

Fields

§endpoint: String
§request: Vec<u8>
§kind: Kind
§peer_feedback: Option<PeerFeedback>
§

HostRPCCallResponse

Fields

§response: Vec<u8>
§

HostStorageSyncRequest(StorageSyncRequestWithEndpoint)

§

HostStorageSyncResponse(StorageSyncResponse)

§

HostLocalStorageGetRequest

Fields

§key: Vec<u8>
§

HostLocalStorageGetResponse

Fields

§value: Vec<u8>
§

HostLocalStorageSetRequest

Fields

§key: Vec<u8>
§value: Vec<u8>
§

HostLocalStorageSetResponse

§

HostFetchConsensusBlockRequest

Fields

§height: u64
§

HostFetchConsensusBlockResponse

Fields

§

HostFetchConsensusEventsRequest(HostFetchConsensusEventsRequest)

§

HostFetchConsensusEventsResponse(HostFetchConsensusEventsResponse)

§

HostFetchTxBatchRequest

Fields

§offset: Option<Hash>
§limit: u32
§

HostFetchTxBatchResponse

Fields

§

HostFetchBlockMetadataTxRequest

Fields

§height: u64
§

HostFetchBlockMetadataTxResponse

Fields

§proof: Proof
§

HostFetchGenesisHeightRequest

§

HostFetchGenesisHeightResponse

Fields

§height: u64
§

HostProveFreshnessRequest

Fields

§blob: Vec<u8>
§

HostProveFreshnessResponse

Fields

§proof: Proof
§

HostIdentityRequest

§

HostIdentityResponse

Fields

§node_id: PublicKey

Trait Implementations§

source§

impl Debug for Body

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for Body

source§

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,

Try to decode from a missing/null/undefined value.
§

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 Default for Body

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Encode for Body

source§

fn into_cbor_value(self) -> Value

Encode the type into a CBOR Value.
§

fn is_empty(&self) -> bool

Whether the value is equal to the empty value for the type.
source§

impl EncodeAsMap for Body

§

fn into_cbor_value_map(self) -> Value
where Self: Sized,

Encode the type into a CBOR Map.
§

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 RefUnwindSafe for Body

§

impl Send for Body

§

impl Sync for Body

§

impl Unpin for Body

§

impl UnwindSafe for Body

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32 ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,