pub enum ErrorKind {
Show 13 variants
DoesNotExist,
NotACollection,
NotAStorage,
AccessDenied,
Io,
InvalidData,
InvalidInput,
ReadOnly,
CollectionNotEmpty,
PreconditionFailed,
Unavailable,
Unsupported,
Uncategorised,
}
Expand description
Variants used to categorise Error
instances.
Variants§
DoesNotExist
A storage, collection or resource does not exist.
NotACollection
Referenced resource is not a collection.
NotAStorage
Referenced resource is not a storage.
AccessDenied
Access was denied by the underlying storage.
Io
Generic input / output error.
InvalidData
Storage returned invalid data.
InvalidInput
Input provided is invalid.
ReadOnly
Resources is read-only.
CollectionNotEmpty
Collection is not empty.
PreconditionFailed
A precondition has failed.
Typically, this error is returned when attempting to operate on an item using a stale
Etag
.
The requested operation is not possible on this specific instance.
Unsupported
This storage implementation does not support a required feature.
Uncategorised
Uncategorised error.
This variant is deprecated and should not be used for any new error paths.
Trait Implementations§
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.