pub enum QmlError {
JobNotFound {
job_id: String,
},
SerializationError {
message: String,
},
StorageError {
message: String,
},
InvalidStateTransition {
from: String,
to: String,
},
InvalidJobData {
message: String,
},
QueueError {
message: String,
},
WorkerError {
message: String,
},
ConfigurationError {
message: String,
},
TimeoutError {
operation: String,
},
MigrationError {
message: String,
},
}
Expand description
The main error type for QML operations.
This enum covers all possible errors that can occur during job processing, storage operations, and serialization.
Variants§
JobNotFound
Job not found error
SerializationError
Serialization/deserialization errors
StorageError
Storage-related errors
InvalidStateTransition
Invalid job state transition
InvalidJobData
Invalid job data
QueueError
Queue operation errors
WorkerError
Worker-related errors
ConfigurationError
Configuration errors
TimeoutError
Timeout errors
MigrationError
Database migration errors
Trait Implementations§
Source§impl Error for QmlError
impl Error for QmlError
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<StorageError> for QmlError
impl From<StorageError> for QmlError
Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for QmlError
Auto Trait Implementations§
impl Freeze for QmlError
impl RefUnwindSafe for QmlError
impl Send for QmlError
impl Sync for QmlError
impl Unpin for QmlError
impl UnwindSafe for QmlError
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