Enum air_test_utils::prelude::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
impl Eq for CallResult
impl StructuralEq for CallResult
impl StructuralPartialEq for CallResult
Auto Trait Implementations§
impl RefUnwindSafe for CallResult
impl !Send for CallResult
impl !Sync for CallResult
impl Unpin for CallResult
impl UnwindSafe for CallResult
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.