Enum zarrs::storage::StorageError
source · pub enum StorageError {
ReadOnly,
IOError(Error),
InvalidMetadata(StoreKey, String),
StorePrefixError(StorePrefixError),
InvalidStoreKey(StoreKeyError),
NodePathError(NodePathError),
NodeNameError(NodeNameError),
InvalidByteRangeError(InvalidByteRangeError),
Unsupported(String),
UnknownKeySize(StoreKey),
Other(String),
}
Expand description
A storage error.
Variants§
ReadOnly
A write operation was attempted on a read only store.
IOError(Error)
An IO error.
InvalidMetadata(StoreKey, String)
An error parsing the metadata for a key.
StorePrefixError(StorePrefixError)
An invalid store prefix.
InvalidStoreKey(StoreKeyError)
An invalid store key.
NodePathError(NodePathError)
An invalid node path.
NodeNameError(NodeNameError)
An invalid node name.
InvalidByteRangeError(InvalidByteRangeError)
An invalid byte range.
Unsupported(String)
The requested method is not supported.
UnknownKeySize(StoreKey)
Unknown key size where the key size must be known.
Other(String)
Any other error.
Trait Implementations§
source§impl Debug for StorageError
impl Debug for StorageError
source§impl Display for StorageError
impl Display for StorageError
source§impl Error for StorageError
impl Error for StorageError
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<&str> for StorageError
impl From<&str> for StorageError
source§impl From<Error> for StorageError
Available on crate features object_store
and async
only.
impl From<Error> for StorageError
Available on crate features
object_store
and async
only.source§impl From<Error> for StorageError
Available on crate feature http
only.
impl From<Error> for StorageError
Available on crate feature
http
only.source§impl From<Error> for StorageError
impl From<Error> for StorageError
source§impl From<Error> for StorageError
Available on crate feature opendal
only.
impl From<Error> for StorageError
Available on crate feature
opendal
only.source§impl From<InvalidByteRangeError> for StorageError
impl From<InvalidByteRangeError> for StorageError
source§fn from(source: InvalidByteRangeError) -> Self
fn from(source: InvalidByteRangeError) -> Self
Converts to this type from the input type.
source§impl From<NodeNameError> for StorageError
impl From<NodeNameError> for StorageError
source§fn from(source: NodeNameError) -> Self
fn from(source: NodeNameError) -> Self
Converts to this type from the input type.
source§impl From<NodePathError> for StorageError
impl From<NodePathError> for StorageError
source§fn from(source: NodePathError) -> Self
fn from(source: NodePathError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for StorageError
Available on crate feature http
only.
impl From<ParseError> for StorageError
Available on crate feature
http
only.source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for ArrayCreateError
impl From<StorageError> for ArrayCreateError
source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for ArrayError
impl From<StorageError> for ArrayError
source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for CodecError
impl From<StorageError> for CodecError
source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for GroupCreateError
impl From<StorageError> for GroupCreateError
source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for NodeCreateError
impl From<StorageError> for NodeCreateError
source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
source§impl From<StorageError> for ZipStorageAdapterCreateError
Available on crate feature zip
only.
impl From<StorageError> for ZipStorageAdapterCreateError
Available on crate feature
zip
only.source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
source§impl From<StoreKeyError> for StorageError
impl From<StoreKeyError> for StorageError
source§fn from(source: StoreKeyError) -> Self
fn from(source: StoreKeyError) -> Self
Converts to this type from the input type.
source§impl From<StorePrefixError> for StorageError
impl From<StorePrefixError> for StorageError
source§fn from(source: StorePrefixError) -> Self
fn from(source: StorePrefixError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorageError
impl !RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl !UnwindSafe for StorageError
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more