Enum zarrs::storage::StorageError
source · pub enum StorageError {
ReadOnly,
IOError(Error),
InvalidJSON(Error),
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.
InvalidJSON(Error)
An error serializing or deserializing JSON.
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)>
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 feature async only.
impl From<Error> for StorageError
Available on crate feature
async only.source§impl From<Error> for StorageError
impl From<Error> for StorageError
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<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 !RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl !UnwindSafe for StorageError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§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