pub enum Error {
Db(DbError),
Settings(CodedError),
Mail(CodedError),
Link(CodedError),
Range(String),
Other(String),
}Expand description
An error from Runlight: a database that failed, or something refused with a code the dashboard says in its own words.
Variants§
Db(DbError)
The database failed.
Settings(CodedError)
A setting refused (the SDK’s SettingsError, a RangeError).
Mail(CodedError)
The mail service refused, or is not set up (MailError).
Link(CodedError)
A short link that cannot be made (LinkError).
Range(String)
Something asked for that is not there (the SDK’s plain RangeError, such as “Unknown link”).
Other(String)
Anything else, with its message.
Implementations§
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<Error> for ConnectFailure
impl From<Error> for ConnectFailure
Source§fn from(e: Error) -> ConnectFailure
fn from(e: Error) -> ConnectFailure
Converts to this type from the input type.
Source§impl From<Error> for ImportError
impl From<Error> for ImportError
Source§fn from(e: Error) -> ImportError
fn from(e: Error) -> ImportError
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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