#[repr(i32)]pub enum RpcErrorCodeProto {
ErrorApplication,
ErrorNoSuchMethod,
ErrorNoSuchProtocol,
ErrorRpcServer,
ErrorSerializingResponse,
ErrorRpcVersionMismatch,
FatalUnknown,
FatalUnsupportedSerialization,
FatalInvalidRpcHeader,
FatalDeserializingRequest,
FatalVersionMismatch,
FatalUnauthorized,
}
Variants§
ErrorApplication
Non-fatal Rpc error - connection left open for future rpc calls
RPC Failed - rpc app threw exception
ErrorNoSuchMethod
Rpc error - no such method
ErrorNoSuchProtocol
Rpc error - no such protocol
ErrorRpcServer
Rpc error on server side
ErrorSerializingResponse
error serializign response
ErrorRpcVersionMismatch
Rpc protocol version mismatch
FatalUnknown
Fatal Server side Rpc error - connection closed
unknown Fatal error
FatalUnsupportedSerialization
IPC layer serilization type invalid
FatalInvalidRpcHeader
fields of RpcHeader are invalid
FatalDeserializingRequest
could not deserilize rpc request
FatalVersionMismatch
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<RpcErrorCodeProto> for RpcErrorCodeProto
impl PartialEq<RpcErrorCodeProto> for RpcErrorCodeProto
source§fn eq(&self, other: &RpcErrorCodeProto) -> bool
fn eq(&self, other: &RpcErrorCodeProto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RpcErrorCodeProto> for RpcErrorCodeProto
impl PartialOrd<RpcErrorCodeProto> for RpcErrorCodeProto
source§fn partial_cmp(&self, other: &RpcErrorCodeProto) -> Option<Ordering>
fn partial_cmp(&self, other: &RpcErrorCodeProto) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for RpcErrorCodeProto
impl Eq for RpcErrorCodeProto
impl StructuralEq for RpcErrorCodeProto
impl StructuralPartialEq for RpcErrorCodeProto
Auto Trait Implementations§
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