canic_core/ops/storage/topology/
mod.rs

1pub mod app;
2pub mod subnet;
3
4pub use app::*;
5pub use subnet::*;
6
7pub use crate::model::memory::topology::SubnetIdentity;
8
9use crate::{Error, ThisError, ops::storage::StorageOpsError};
10
11///
12/// TopologyOpsError
13///
14
15#[derive(Debug, ThisError)]
16pub enum TopologyOpsError {
17    #[error(transparent)]
18    SubnetCanisterRegistryOpsError(#[from] SubnetCanisterRegistryOpsError),
19}
20
21impl From<TopologyOpsError> for Error {
22    fn from(err: TopologyOpsError) -> Self {
23        StorageOpsError::from(err).into()
24    }
25}