canic_core/ops/storage/
mod.rs

1pub mod children;
2pub mod cycles;
3pub mod directory;
4pub mod pool;
5pub mod registry;
6pub mod scaling;
7pub mod sharding;
8pub mod state;
9
10use crate::{Error, ThisError, ops::OpsError};
11
12///
13/// StorageOpsError
14/// Error envelope shared across operations submodules
15///
16
17#[derive(Debug, ThisError)]
18pub enum StorageOpsError {
19    #[error(transparent)]
20    RegistryOpsError(#[from] registry::RegistryOpsError),
21
22    #[error(transparent)]
23    ShardingRegistryOpsError(#[from] sharding::ShardingRegistryOpsError),
24
25    #[error(transparent)]
26    StateOpsError(#[from] state::StateOpsError),
27}
28
29impl From<StorageOpsError> for Error {
30    fn from(err: StorageOpsError) -> Self {
31        OpsError::StorageOpsError(err).into()
32    }
33}