#[repr(i32)]pub enum ProtoErrorCode {
UnknownError = 1,
UnsupportedMessage = 2,
InvalidRequest = 3,
TimeoutError = 5,
EntityNotFound = 6,
CantRouteRequest = 7,
FrameTooLong = 8,
MarketClosed = 9,
ConcurrentModification = 10,
BlockedPayloadType = 11,
}Variants§
UnknownError = 1
UnsupportedMessage = 2
InvalidRequest = 3
TimeoutError = 5
EntityNotFound = 6
CantRouteRequest = 7
FrameTooLong = 8
MarketClosed = 9
ConcurrentModification = 10
BlockedPayloadType = 11
Implementations§
Source§impl ProtoErrorCode
impl ProtoErrorCode
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 ProtoErrorCode
impl Clone for ProtoErrorCode
impl Copy for ProtoErrorCode
Source§impl Debug for ProtoErrorCode
impl Debug for ProtoErrorCode
Source§impl Default for ProtoErrorCode
impl Default for ProtoErrorCode
Source§fn default() -> ProtoErrorCode
fn default() -> ProtoErrorCode
Returns the “default value” for a type. Read more
impl Eq for ProtoErrorCode
Source§impl From<ProtoErrorCode> for ErrorCode
impl From<ProtoErrorCode> for ErrorCode
Source§fn from(code: ProtoErrorCode) -> Self
fn from(code: ProtoErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ProtoErrorCode> for i32
impl From<ProtoErrorCode> for i32
Source§fn from(value: ProtoErrorCode) -> i32
fn from(value: ProtoErrorCode) -> i32
Converts to this type from the input type.
Source§impl Hash for ProtoErrorCode
impl Hash for ProtoErrorCode
Source§impl Ord for ProtoErrorCode
impl Ord for ProtoErrorCode
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProtoErrorCode
impl PartialEq for ProtoErrorCode
Source§impl PartialOrd for ProtoErrorCode
impl PartialOrd for ProtoErrorCode
impl StructuralPartialEq for ProtoErrorCode
Source§impl TryFrom<i32> for ProtoErrorCode
impl TryFrom<i32> for ProtoErrorCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProtoErrorCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtoErrorCode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ProtoErrorCode
impl Freeze for ProtoErrorCode
impl Move for ProtoErrorCode
impl RefUnwindSafe for ProtoErrorCode
impl Send for ProtoErrorCode
impl Sync for ProtoErrorCode
impl Unpin for ProtoErrorCode
impl UnsafeUnpin for ProtoErrorCode
impl UnwindSafe for ProtoErrorCode
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