Struct oasis_core_runtime::enclave_rpc::client::Response
source · pub struct Response<'a, T> { /* private fields */ }
Expand description
An EnclaveRPC response that can be used to provide peer feedback.
Implementations§
source§impl<'a, T> Response<'a, T>
impl<'a, T> Response<'a, T>
sourcepub async fn into_result_with_feedback(self) -> Result<T, RpcClientError>
pub async fn into_result_with_feedback(self) -> Result<T, RpcClientError>
Report success if result was Ok(_)
and failure if result was Err(_)
, then return the
inner result consuming the response instance.
sourcepub fn result(&self) -> &Result<T, RpcClientError>
pub fn result(&self) -> &Result<T, RpcClientError>
Reference to inner result.
sourcepub fn into_result(self) -> Result<T, RpcClientError>
pub fn into_result(self) -> Result<T, RpcClientError>
Consume the response instance returning the inner result.
Auto Trait Implementations§
impl<'a, T> Freeze for Response<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for Response<'a, T>
impl<'a, T> Send for Response<'a, T>where
T: Send,
impl<'a, T> Sync for Response<'a, T>where
T: Sync,
impl<'a, T> Unpin for Response<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Response<'a, T>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more