pub enum KeylightError {
ClientError {
status: u16,
message: String,
},
ServerError {
status: u16,
},
RateLimited {
retry_after: u64,
},
Timeout,
NetworkFailure(String),
InvalidResponse,
LeaseVerificationFailed,
Storage(String),
NoStoredLicense,
}Variants§
ClientError
ServerError
RateLimited
Timeout
NetworkFailure(String)
InvalidResponse
LeaseVerificationFailed
Storage(String)
NoStoredLicense
Trait Implementations§
Source§impl Debug for KeylightError
impl Debug for KeylightError
Source§impl Display for KeylightError
impl Display for KeylightError
Source§impl Error for KeylightError
impl Error for KeylightError
1.30.0 · 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 KeylightError
impl RefUnwindSafe for KeylightError
impl Send for KeylightError
impl Sync for KeylightError
impl Unpin for KeylightError
impl UnsafeUnpin for KeylightError
impl UnwindSafe for KeylightError
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