pub enum ErrorKind {
IO(Error),
Transport(Error),
AuthorizationError,
ServerError(String),
DeserializationError,
NotFoundError,
// some variants omitted
}
Expand description
The kind of an error.
Variants§
IO(Error)
Transport(Error)
AuthorizationError
Indicates that the provided API key was refused by the DeepL server.
ServerError(String)
An error occurred on the server side when processing a request. If possible, details will be provided in the error message.
DeserializationError
An error occurred on the client side when deserializing the response data.
NotFoundError
Resource was not found
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin 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