#[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<Self>
pub fn from_str_name(value: &str) -> Option<Self>
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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
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