canic_core/workflow/
mod.rs

1pub mod app;
2pub mod bootstrap;
3pub mod cascade;
4pub mod command;
5pub mod directory;
6pub mod ic;
7pub mod lifecycle;
8pub mod orchestrator;
9pub mod placement;
10pub mod pool;
11pub mod rpc;
12pub mod runtime;
13pub mod snapshot;
14
15///
16/// Prelude
17///
18
19pub mod prelude {
20    pub use crate::{
21        cdk::{
22            api::{canister_self, msg_caller},
23            candid::CandidType,
24            types::{Account, Cycles, Int, Nat, Principal, Subaccount},
25        },
26        ids::CanisterRole,
27        log,
28        log::{Level, Topic},
29    };
30    pub use serde::{Deserialize, Serialize};
31}
32
33use crate::ThisError;
34
35///
36/// WorkflowError
37///
38
39#[derive(Debug, ThisError)]
40pub enum WorkflowError {
41    #[error(transparent)]
42    CascadeError(#[from] cascade::CascadeError),
43
44    #[error(transparent)]
45    IcError(#[from] ic::IcError),
46
47    #[error(transparent)]
48    OrchestrationError(#[from] orchestrator::OrchestratorError),
49}