#[non_exhaustive]pub enum Error {
NotFound,
Conflict,
PreconditionFailed,
InvalidKey {
reason: &'static str,
},
Unavailable {
message: String,
retriable: bool,
},
Auth {
message: String,
},
TooLarge {
limit: u64,
},
Protocol {
message: String,
},
Fenced {
reason: &'static str,
},
Corrupt {
message: String,
},
Io {
source: Error,
},
}Expand description
Everything an object store can report.
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.
NotFound
The object does not exist (ranged reads only; get/head return None).
Conflict
A Cond::CreateOnly write found an existing object.
PreconditionFailed
A Cond::IfGeneration write found another
generation (or no object).
InvalidKey
The key or prefix is not valid (see Key::parse).
The store could not be reached or refused for a transient reason.
Auth
Authentication or authorization failed.
TooLarge
The body exceeds a configured limit.
Protocol
The store answered with something unexpected.
Fenced
A fenced publish lost to another writer (see crate::fenced).
Stop writing; re-read before publishing again.
Corrupt
Published data failed verification against the record naming it.
Io
Local I/O.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more