pub enum RepackError {
Cancelled,
Operation(String),
WorkerPanicked,
}Expand description
Error returned by scheduling or executing a repack.
Variants§
Cancelled
Cancellation was observed before the storage cutover began.
Operation(String)
The storage-specific operation failed.
WorkerPanicked
The worker panicked before reporting a result.
Implementations§
Source§impl RepackError
impl RepackError
Sourcepub fn operation(error: impl Error) -> RepackError
pub fn operation(error: impl Error) -> RepackError
Wrap a storage-specific error without coupling the scheduler to it.
Sourcepub fn message(message: impl Into<String>) -> RepackError
pub fn message(message: impl Into<String>) -> RepackError
Wrap a storage-specific diagnostic that is not an error type.
Trait Implementations§
Source§impl Clone for RepackError
impl Clone for RepackError
Source§fn clone(&self) -> RepackError
fn clone(&self) -> RepackError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepackError
impl Debug for RepackError
Source§impl Display for RepackError
impl Display for RepackError
impl Eq for RepackError
Source§impl Error for RepackError
impl Error for RepackError
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 PartialEq for RepackError
impl PartialEq for RepackError
impl StructuralPartialEq for RepackError
Auto Trait Implementations§
impl Freeze for RepackError
impl RefUnwindSafe for RepackError
impl Send for RepackError
impl Sync for RepackError
impl Unpin for RepackError
impl UnsafeUnpin for RepackError
impl UnwindSafe for RepackError
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