#[repr(i32)]pub enum RpcStatus {
Ok = 0,
Error = 1,
Timeout = 2,
InterfaceNotFound = 3,
MethodNotFound = 4,
Unavailable = 5,
InvalidRequest = 6,
UnsupportedVersion = 7,
ServiceDraining = 8,
ServiceFrozen = 9,
MessageTooLarge = 10,
PermissionDenied = 11,
}Variants§
Ok = 0
Error = 1
Timeout = 2
InterfaceNotFound = 3
MethodNotFound = 4
InvalidRequest = 6
UnsupportedVersion = 7
ServiceDraining = 8
ServiceFrozen = 9
MessageTooLarge = 10
PermissionDenied = 11
Implementations§
Source§impl RpcStatus
impl RpcStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<RpcStatus>
pub fn from_str_name(value: &str) -> Option<RpcStatus>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RpcStatus
impl<'de> Deserialize<'de> for RpcStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RpcStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for RpcStatus
impl Ord for RpcStatus
Source§impl PartialOrd for RpcStatus
impl PartialOrd for RpcStatus
Source§impl Serialize for RpcStatus
impl Serialize for RpcStatus
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 Copy for RpcStatus
impl Eq for RpcStatus
impl StructuralPartialEq for RpcStatus
Auto Trait Implementations§
impl Freeze for RpcStatus
impl RefUnwindSafe for RpcStatus
impl Send for RpcStatus
impl Sync for RpcStatus
impl Unpin for RpcStatus
impl UnsafeUnpin for RpcStatus
impl UnwindSafe for RpcStatus
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.