pub enum RpcCallStatus {
Ok,
Error(String),
Timeout,
Canceled,
}Expand description
Status of an observed RPC call. Maps from the dispatch
path’s exit branches: Ok for a successful response,
Error(msg) for a server-returned typed error or a
transport-level failure, Timeout for a deadline expiry,
and Canceled for a future drop / cancel-token trip.
Variants§
Ok
Successful response received from the callee.
Error(String)
Server returned a typed error or a transport-level failure surfaced before the response could be parsed. The string carries an operator-readable diagnostic.
Timeout
opts.deadline expired before the response arrived.
Canceled
The call future was dropped before completion (e.g.
select! cancelled, hedge loser, explicit cancel
token). Reserved — not yet emitted by v1.
Trait Implementations§
Source§impl Clone for RpcCallStatus
impl Clone for RpcCallStatus
Source§fn clone(&self) -> RpcCallStatus
fn clone(&self) -> RpcCallStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RpcCallStatus
impl Debug for RpcCallStatus
Source§impl PartialEq for RpcCallStatus
impl PartialEq for RpcCallStatus
Source§fn eq(&self, other: &RpcCallStatus) -> bool
fn eq(&self, other: &RpcCallStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RpcCallStatus
impl StructuralPartialEq for RpcCallStatus
Auto Trait Implementations§
impl Freeze for RpcCallStatus
impl RefUnwindSafe for RpcCallStatus
impl Send for RpcCallStatus
impl Sync for RpcCallStatus
impl Unpin for RpcCallStatus
impl UnsafeUnpin for RpcCallStatus
impl UnwindSafe for RpcCallStatus
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.