#[non_exhaustive]pub enum ErrorKind {
BadRequest,
MethodNotFound,
Failed,
Internal,
Forbidden,
}Expand description
How an error relates to the request, independent of transport. HTTP uses it to pick a status code (400, 404, 200 or 500).
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 request is malformed or cannot be accepted as sent.
MethodNotFound
The method does not exist.
Failed
A well-formed request that could not be completed (e.g. unknown tool).
Internal
A server-side failure.
Forbidden
The access token lacks scopes the request needs (HTTP 403 with an
insufficient_scope challenge).
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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