pub enum StorageErrorKind {
ReadFailed,
WriteFailed,
DeleteFailed,
InsufficientCapacity,
DataCorruption,
FileNotFound,
}Expand description
存储错误类型
Variants§
ReadFailed
读取失败
WriteFailed
写入失败
DeleteFailed
删除失败
InsufficientCapacity
容量不足
DataCorruption
数据损坏
FileNotFound
文件未找到
Trait Implementations§
Source§impl Clone for StorageErrorKind
impl Clone for StorageErrorKind
Source§fn clone(&self) -> StorageErrorKind
fn clone(&self) -> StorageErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageErrorKind
impl Debug for StorageErrorKind
Source§impl<'de> Deserialize<'de> for StorageErrorKind
impl<'de> Deserialize<'de> for StorageErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for StorageErrorKind
impl Display for StorageErrorKind
Source§impl From<StorageErrorKind> for WaeError
impl From<StorageErrorKind> for WaeError
Source§fn from(kind: StorageErrorKind) -> Self
fn from(kind: StorageErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StorageErrorKind
impl PartialEq for StorageErrorKind
Source§impl Serialize for StorageErrorKind
impl Serialize for StorageErrorKind
impl Copy for StorageErrorKind
impl Eq for StorageErrorKind
impl StructuralPartialEq for StorageErrorKind
Auto Trait Implementations§
impl Freeze for StorageErrorKind
impl RefUnwindSafe for StorageErrorKind
impl Send for StorageErrorKind
impl Sync for StorageErrorKind
impl Unpin for StorageErrorKind
impl UnsafeUnpin for StorageErrorKind
impl UnwindSafe for StorageErrorKind
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