#[non_exhaustive]pub enum Category {
BadRequest,
#[non_exhaustive] Custom {},
}Expand description
What type of error this is. Roughly corresponds to HTTP error statuses.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadRequest
The client made an invalid request. Usually bad input.
#[non_exhaustive]Custom
Fallback for custom error statuses. Will have fields based on if the http/json_rpc features are defined.
Trait Implementations§
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnwindSafe for Category
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