Enum maxwell_protocol::protocol::ErrorCode
source · #[repr(i32)]pub enum ErrorCode {
Show 19 variants
Ok = 0,
UnknownMsg = 1,
NotAllowedToRegisterFrontend = 100,
NotAllowedToRegisterBackend = 101,
NotAllowedToRegisterService = 102,
FailedToSetRoutes = 103,
FailedToPickFrontend = 104,
FailedToLocateTopic = 105,
MasterError = 199,
FailedToRequestService = 200,
FailedToRequestBackend = 201,
FrontendError = 299,
FailedToPush = 300,
FailedToPull = 301,
UnknownTopic = 302,
BackendError = 399,
UnknownPath = 400,
ServiceError = 499,
ClientError = 599,
}Variants§
Ok = 0
common error codes: 0~99
UnknownMsg = 1
NotAllowedToRegisterFrontend = 100
master error codes: 100~199
NotAllowedToRegisterBackend = 101
NotAllowedToRegisterService = 102
FailedToSetRoutes = 103
FailedToPickFrontend = 104
FailedToLocateTopic = 105
MasterError = 199
FailedToRequestService = 200
frontend error codes: 200~299
FailedToRequestBackend = 201
FrontendError = 299
FailedToPush = 300
backend error codes: 300~399
FailedToPull = 301
UnknownTopic = 302
BackendError = 399
UnknownPath = 400
service error codes: 400~499
ServiceError = 499
ClientError = 599
client error codes: 500~599
Implementations§
source§impl ErrorCode
impl ErrorCode
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 Ord for ErrorCode
impl Ord for ErrorCode
source§impl PartialOrd for ErrorCode
impl PartialOrd for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)