pub enum BackgroundPrefetchWorkerError {
StatePoisoned,
WorkerDisconnected,
OperationFailed {
id: OffloadUnitId,
message: String,
},
State(PrefetchStateError),
Io(Error),
}Expand description
Failure from the backend-neutral background prefetch worker.
Variants§
StatePoisoned
Shared worker state was poisoned.
WorkerDisconnected
The worker ended before accepting or completing required work.
OperationFailed
A backend operation failed and was retained for demand or cancellation.
State(PrefetchStateError)
Backend-neutral lifecycle misuse.
Io(Error)
Worker creation failed.
Trait Implementations§
Source§impl Error for BackgroundPrefetchWorkerError
impl Error for BackgroundPrefetchWorkerError
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 BackgroundPrefetchWorkerError
impl From<Error> for BackgroundPrefetchWorkerError
Source§impl From<PrefetchStateError> for BackgroundPrefetchWorkerError
impl From<PrefetchStateError> for BackgroundPrefetchWorkerError
Source§fn from(source: PrefetchStateError) -> Self
fn from(source: PrefetchStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BackgroundPrefetchWorkerError
impl !UnwindSafe for BackgroundPrefetchWorkerError
impl Freeze for BackgroundPrefetchWorkerError
impl Send for BackgroundPrefetchWorkerError
impl Sync for BackgroundPrefetchWorkerError
impl Unpin for BackgroundPrefetchWorkerError
impl UnsafeUnpin for BackgroundPrefetchWorkerError
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