atomic-ops 0.1.1

Performs atomic operations in the filesystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

#[derive(Error, Debug)]
pub enum OpsError {
    #[error("Serialize error")]
    SerializeFailed,
    #[error("Failed to borrow process status")]
    BorrowingStatusFailed,
    #[error("Failed to handle")]
    HandlingFailed,
    #[error(transparent)]
    IOError(#[from] std::io::Error),
    #[error("unknown data store error")]
    Unknown,
}

pub type OpsResult<T> = Result<T, OpsError>;