pub enum MuxiError {
Authentication {
code: String,
message: String,
status: u16,
},
Authorization {
code: String,
message: String,
status: u16,
},
NotFound {
code: String,
message: String,
status: u16,
},
Conflict {
code: String,
message: String,
status: u16,
},
Validation {
code: String,
message: String,
status: u16,
},
RateLimit {
message: String,
status: u16,
retry_after: Option<u32>,
},
Server {
code: String,
message: String,
status: u16,
},
Connection(String),
Request(Error),
Json(Error),
Unknown {
code: String,
message: String,
status: u16,
},
}Variants§
Authentication
Authorization
NotFound
Conflict
Validation
RateLimit
Server
Connection(String)
Request(Error)
Json(Error)
Unknown
Implementations§
Trait Implementations§
Source§impl Error for MuxiError
impl Error for MuxiError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MuxiError
impl !RefUnwindSafe for MuxiError
impl Send for MuxiError
impl Sync for MuxiError
impl Unpin for MuxiError
impl UnsafeUnpin for MuxiError
impl !UnwindSafe for MuxiError
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