Struct air_test_utils::prelude::CallServiceResult
source · pub struct CallServiceResult {
pub ret_code: i32,
pub result: Value,
}
Expand description
Represents an executed host function result.
Fields§
§ret_code: i32
A error code service or builtin returned, where CALL_SERVICE_SUCCESS represents success.
result: Value
Resulted JValue returned by a service string.
Implementations§
source§impl CallServiceResult
impl CallServiceResult
pub fn ok(result: Value) -> CallServiceResult
pub fn err(err_code: i32, result: Value) -> CallServiceResult
pub fn into_raw(self) -> CallServiceResult
Trait Implementations§
source§impl Clone for CallServiceResult
impl Clone for CallServiceResult
source§fn clone(&self) -> CallServiceResult
fn clone(&self) -> CallServiceResult
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 CallServiceResult
impl Debug for CallServiceResult
source§impl Default for CallServiceResult
impl Default for CallServiceResult
source§fn default() -> CallServiceResult
fn default() -> CallServiceResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CallServiceResult
impl<'de> Deserialize<'de> for CallServiceResult
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CallServiceResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<CallServiceResult, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for CallServiceResult
impl Display for CallServiceResult
source§impl PartialEq<CallServiceResult> for CallServiceResult
impl PartialEq<CallServiceResult> for CallServiceResult
source§fn eq(&self, other: &CallServiceResult) -> bool
fn eq(&self, other: &CallServiceResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallServiceResult
impl Serialize for CallServiceResult
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 CallServiceResult
impl StructuralEq for CallServiceResult
impl StructuralPartialEq for CallServiceResult
Auto Trait Implementations§
impl RefUnwindSafe for CallServiceResult
impl Send for CallServiceResult
impl Sync for CallServiceResult
impl Unpin for CallServiceResult
impl UnwindSafe for CallServiceResult
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.