#[non_exhaustive]pub enum MirrorError {
NotLocal {
path: Path,
},
Local {
source: Error,
},
WriteCommitted {
path: Path,
source: Box<dyn Error + Send + Sync>,
},
Policy {
source: Box<dyn Error + Send + Sync>,
},
Unsupported {
operation: &'static str,
},
InvalidConfig {
message: String,
},
}Expand description
Errors raised by the mirror itself, as opposed to errors from the wrapped store.
The mirror returns these wrapped in object_store::Error::Generic with
a NonRetryable wrapper around the MirrorError as the source.
Use MirrorError::find to get the original error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotLocal
A Local route missed.
Local
Local disk I/O failed. Nothing was written remotely.
WriteCommitted
A write reached the remote store, but observe or local installation
failed afterwards. The remote object exists.
Policy
The policy returned an error from a route or observe call.
Unsupported
The mirror doesn’t support this operation: COPY or RENAME.
InvalidConfig
ObjectStoreMirrorBuilder::build was given an invalid option.
Implementations§
Source§impl MirrorError
impl MirrorError
Sourcepub fn find<'a>(err: &'a (dyn Error + 'static)) -> Option<&'a MirrorError>
pub fn find<'a>(err: &'a (dyn Error + 'static)) -> Option<&'a MirrorError>
Returns the first MirrorError in err’s source chain, including err
itself.
Trait Implementations§
Source§impl Debug for MirrorError
impl Debug for MirrorError
Source§impl Display for MirrorError
impl Display for MirrorError
Source§impl Error for MirrorError
impl Error for MirrorError
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<MirrorError> for Error
impl From<MirrorError> for Error
Source§fn from(err: MirrorError) -> Self
fn from(err: MirrorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MirrorError
impl !UnwindSafe for MirrorError
impl Forget for MirrorError
impl Freeze for MirrorError
impl Send for MirrorError
impl Sync for MirrorError
impl Unpin for MirrorError
impl UnsafeUnpin for MirrorError
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