ReferenceRust referencesigil-storage
sigil-storage · error
Source declarations, signatures and documentation for error.
Source: sigil/node/sigil-storage/src/error.rs. SHA-256: 244350edb411b3c5e2e1172570c8dd2dadf4d60f16580e032ab48d6b6256bbb5.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
error::StorageError
Errors produced by storage operations.
#[derive(Debug, thiserror::Error)]
pub enum StorageError {
/// The requested item was not found.
#[error("not found: {0}")]
NotFound(String),
/// Stored data failed integrity checks.
#[error("corrupted data: {0}")]
CorruptedData(String),
/// A write operation failed.
#[error("write error: {0}")]
WriteError(String),
/// A read operation failed.
#[error("read error: {0}")]
ReadError(String),
/// Serialization or deserialization failed.
#[error("serialization error: {0}")]
SerializationError(String),
/// The requested partition does not exist.
#[error("partition not found: {0}")]
PartitionNotFound(String),
}Source line: 7.
error::StorageError::not_found
Convenience: create a NotFound error with a formatted message.
pub fn not_found(msg: impl fmt::Display) -> Self;Source line: 35.