pub enum LaneError {
LaneNotFound(String),
QueueError(String),
ConfigError(String),
CommandError(String),
Timeout(Duration),
ShutdownInProgress,
Other(String),
}Expand description
Lane queue error type
Represents all possible errors that can occur in the lane queue system.
§Variants
LaneNotFound- The specified lane ID does not exist in the queueQueueError- General queue operation error (e.g., capacity exceeded)ConfigError- Invalid configuration (e.g., min > max concurrency)CommandError- Command execution failedTimeout- Command exceeded its timeout durationShutdownInProgress- Queue is shutting down and not accepting new commandsOther- Catch-all for unexpected errors
Variants§
LaneNotFound(String)
Lane not found
QueueError(String)
Queue error
ConfigError(String)
Configuration error
CommandError(String)
Command execution error
Timeout(Duration)
Command timeout
ShutdownInProgress
Shutdown in progress
Other(String)
Other error
Trait Implementations§
Source§impl Error for LaneError
impl Error for LaneError
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 LaneError
impl RefUnwindSafe for LaneError
impl Send for LaneError
impl Sync for LaneError
impl Unpin for LaneError
impl UnsafeUnpin for LaneError
impl UnwindSafe for LaneError
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