ic-backup 0.26.0

Host-side snapshot backup and same-release recovery for Internet Computer canisters
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Deterministic host IO and single-step local effects.

pub mod artifacts;
pub mod persistence;

pub(crate) fn directory_creation_io(
    error: ic_host_fs::durable::DirectoryCreationError,
) -> std::io::Error {
    use ic_host_fs::durable::DirectoryCreationError;
    let kind = match &error {
        DirectoryCreationError::BeforeCreation(source)
        | DirectoryCreationError::AfterCreation(source) => source.kind(),
    };
    std::io::Error::new(kind, error)
}