pub enum ThingsError {
Show 15 variants
MissingAuthToken {
hint: String,
},
SchemaIncompatible {
missing: Vec<String>,
things_version_guess: Option<String>,
},
DbLocked {
retry_in_ms: u32,
},
WriteUnverified {
payload_echo: String,
elapsed_ms: u32,
},
UnsupportedRecurrence {
pattern: String,
supported: Vec<String>,
},
OperationNotAllowedOnRepeatingItem {
id: String,
field: String,
},
DryRun {
url: String,
payload: Value,
},
ExecutorFailed {
message: String,
},
AuthTokenRejected,
AppleScriptFailed {
stderr: String,
exit: i32,
},
ThingsAppNotRunning,
InvalidInput {
field: String,
reason: String,
},
Io(String),
Sqlite(String),
TestDbWriteForbidden,
}Variants§
MissingAuthToken
SchemaIncompatible
DbLocked
WriteUnverified
UnsupportedRecurrence
OperationNotAllowedOnRepeatingItem
DryRun
ExecutorFailed
AuthTokenRejected
AppleScriptFailed
ThingsAppNotRunning
InvalidInput
Io(String)
Sqlite(String)
TestDbWriteForbidden
Trait Implementations§
Source§impl Debug for ThingsError
impl Debug for ThingsError
Source§impl Display for ThingsError
impl Display for ThingsError
Source§impl Error for ThingsError
impl Error for ThingsError
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 ThingsError
impl From<Error> for ThingsError
Source§impl From<Error> for ThingsError
impl From<Error> for ThingsError
Auto Trait Implementations§
impl Freeze for ThingsError
impl RefUnwindSafe for ThingsError
impl Send for ThingsError
impl Sync for ThingsError
impl Unpin for ThingsError
impl UnsafeUnpin for ThingsError
impl UnwindSafe for ThingsError
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