pub enum CacheIoWorkerError {
Poisoned,
OperationFailed(String),
Cancelled {
generation: u64,
},
Spawn {
thread_name: String,
source: Error,
},
Execution(CacheIoExecutionStateError),
}Expand description
Failure in generic cache I/O worker coordination or task execution.
Variants§
Poisoned
The worker’s synchronization state was poisoned.
OperationFailed(String)
A task returned a backend-specific failure string.
Cancelled
Cancellation won for this generation.
Spawn
The physical worker thread could not be started.
Fields
Execution(CacheIoExecutionStateError)
The exact admission/cancellation state transition was invalid.
Trait Implementations§
Source§impl Debug for CacheIoWorkerError
impl Debug for CacheIoWorkerError
Source§impl Display for CacheIoWorkerError
impl Display for CacheIoWorkerError
Source§impl Error for CacheIoWorkerError
impl Error for CacheIoWorkerError
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<CacheIoExecutionStateError> for CacheIoWorkerError
impl From<CacheIoExecutionStateError> for CacheIoWorkerError
Source§fn from(source: CacheIoExecutionStateError) -> Self
fn from(source: CacheIoExecutionStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CacheIoWorkerError
impl !UnwindSafe for CacheIoWorkerError
impl Freeze for CacheIoWorkerError
impl Send for CacheIoWorkerError
impl Sync for CacheIoWorkerError
impl Unpin for CacheIoWorkerError
impl UnsafeUnpin for CacheIoWorkerError
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