Enum air::interpreter_data::CallResult
source · pub enum CallResult {
RequestSentBy(Sender),
Executed(ValueRef),
Failed(Rc<CID<ServiceResultAggregate>>),
}
Variants§
RequestSentBy(Sender)
Request was sent to a target node by node with such public key and it shouldn’t be called again.
Executed(ValueRef)
A corresponding call’s been already executed with such value as a result.
Failed(Rc<CID<ServiceResultAggregate>>)
The call returned a service error.
The JValue
has to be a two element array [i32, String]
.
Implementations§
source§impl CallResult
impl CallResult
pub fn sent_peer_id(peer_id: Rc<String>) -> CallResult
pub fn sent_peer_id_with_call_id( peer_id: Rc<String>, call_id: u32 ) -> CallResult
pub fn executed_service_result(value_ref: ValueRef) -> CallResult
pub fn executed_scalar( service_result_agg_cid: Rc<CID<ServiceResultAggregate>> ) -> CallResult
pub fn executed_stream( service_result_agg_cid: Rc<CID<ServiceResultAggregate>>, generation: u32 ) -> CallResult
pub fn executed_unused(value_cid: Rc<CID<Value>>) -> CallResult
pub fn failed( service_result_agg_cid: Rc<CID<ServiceResultAggregate>> ) -> CallResult
Trait Implementations§
source§impl Clone for CallResult
impl Clone for CallResult
source§fn clone(&self) -> CallResult
fn clone(&self) -> CallResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallResult
impl Debug for CallResult
source§impl<'de> Deserialize<'de> for CallResult
impl<'de> Deserialize<'de> for CallResult
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CallResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CallResult, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CallResult> for CallResult
impl PartialEq<CallResult> for CallResult
source§fn eq(&self, other: &CallResult) -> bool
fn eq(&self, other: &CallResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallResult
impl Serialize for CallResult
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more