#[repr(i32)]pub enum RpcErrorCodeProto {
ErrorApplication = 1,
ErrorNoSuchMethod = 2,
ErrorNoSuchProtocol = 3,
ErrorRpcServer = 4,
ErrorSerializingResponse = 5,
ErrorRpcVersionMismatch = 6,
FatalUnknown = 10,
FatalUnsupportedSerialization = 11,
FatalInvalidRpcHeader = 12,
FatalDeserializingRequest = 13,
FatalVersionMismatch = 14,
FatalUnauthorized = 15,
}
Variants§
ErrorApplication = 1
Non-fatal Rpc error - connection left open for future rpc calls
RPC Failed - rpc app threw exception
ErrorNoSuchMethod = 2
Rpc error - no such method
ErrorNoSuchProtocol = 3
Rpc error - no such protocol
ErrorRpcServer = 4
Rpc error on server side
ErrorSerializingResponse = 5
error serializign response
ErrorRpcVersionMismatch = 6
Rpc protocol version mismatch
FatalUnknown = 10
Fatal Server side Rpc error - connection closed
unknown Fatal error
FatalUnsupportedSerialization = 11
IPC layer serilization type invalid
FatalInvalidRpcHeader = 12
fields of RpcHeader are invalid
FatalDeserializingRequest = 13
could not deserilize rpc request
FatalVersionMismatch = 14
Ipc Layer version mismatch
Auth failed
Implementations§
Source§impl RpcErrorCodeProto
impl RpcErrorCodeProto
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 Clone for RpcErrorCodeProto
impl Clone for RpcErrorCodeProto
Source§fn clone(&self) -> RpcErrorCodeProto
fn clone(&self) -> RpcErrorCodeProto
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 RpcErrorCodeProto
impl Debug for RpcErrorCodeProto
Source§impl Default for RpcErrorCodeProto
impl Default for RpcErrorCodeProto
Source§fn default() -> RpcErrorCodeProto
fn default() -> RpcErrorCodeProto
Returns the “default value” for a type. Read more
Source§impl From<RpcErrorCodeProto> for i32
impl From<RpcErrorCodeProto> for i32
Source§fn from(value: RpcErrorCodeProto) -> i32
fn from(value: RpcErrorCodeProto) -> i32
Converts to this type from the input type.
Source§impl Hash for RpcErrorCodeProto
impl Hash for RpcErrorCodeProto
Source§impl Ord for RpcErrorCodeProto
impl Ord for RpcErrorCodeProto
Source§fn cmp(&self, other: &RpcErrorCodeProto) -> Ordering
fn cmp(&self, other: &RpcErrorCodeProto) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RpcErrorCodeProto
impl PartialEq for RpcErrorCodeProto
Source§impl PartialOrd for RpcErrorCodeProto
impl PartialOrd for RpcErrorCodeProto
Source§impl TryFrom<i32> for RpcErrorCodeProto
impl TryFrom<i32> for RpcErrorCodeProto
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<RpcErrorCodeProto, DecodeError>
fn try_from(value: i32) -> Result<RpcErrorCodeProto, DecodeError>
Performs the conversion.
impl Copy for RpcErrorCodeProto
impl Eq for RpcErrorCodeProto
impl StructuralPartialEq for RpcErrorCodeProto
Auto Trait Implementations§
impl Freeze for RpcErrorCodeProto
impl RefUnwindSafe for RpcErrorCodeProto
impl Send for RpcErrorCodeProto
impl Sync for RpcErrorCodeProto
impl Unpin for RpcErrorCodeProto
impl UnwindSafe for RpcErrorCodeProto
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