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) -> Self
pub fn executed_scalar( service_result_agg_cid: Rc<CID<ServiceResultAggregate>> ) -> Self
pub fn executed_stream( service_result_agg_cid: Rc<CID<ServiceResultAggregate>>, generation: u32 ) -> CallResult
pub fn executed_unused(value_cid: Rc<CID<JValue>>) -> 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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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 ==
.