pub enum StorageError {
Show 13 variants
ReadFailed(String),
WriteFailed(String),
DeleteFailed(String),
ListFailed(String),
NotFound(String),
PermissionDenied(String),
EncryptionFailed {
reason: String,
},
DecryptionFailed {
reason: String,
},
IntegrityCheckFailed {
key: String,
expected: String,
actual: String,
},
InvalidKey {
reason: String,
},
SpaceExhausted {
available: u64,
required: u64,
},
ConfigurationError {
reason: String,
},
CorruptionDetected {
details: String,
},
}Expand description
Storage operation errors
Variants§
ReadFailed(String)
Failed to read data
WriteFailed(String)
Failed to write data
DeleteFailed(String)
Failed to delete data
ListFailed(String)
Failed to list keys
NotFound(String)
Key not found
PermissionDenied(String)
Permission denied for storage operation
EncryptionFailed
Encryption failed
DecryptionFailed
Decryption failed
IntegrityCheckFailed
Integrity check failed
Fields
InvalidKey
Invalid key format
SpaceExhausted
Storage space exhausted
ConfigurationError
Configuration error
CorruptionDetected
Data corruption detected
Trait Implementations§
Source§impl Debug for StorageError
impl Debug for StorageError
Source§impl<'de> Deserialize<'de> for StorageError
impl<'de> Deserialize<'de> for StorageError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StorageError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StorageError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
1.30.0 · 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<StorageError> for AuraError
impl From<StorageError> for AuraError
Source§fn from(err: StorageError) -> AuraError
fn from(err: StorageError) -> AuraError
Converts to this type from the input type.
Source§impl Serialize for StorageError
impl Serialize for StorageError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StorageError
impl RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl UnsafeUnpin for StorageError
impl UnwindSafe for StorageError
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