chio_kernel/
revocation_store.rs1#[derive(Debug, thiserror::Error)]
2pub enum RevocationStoreError {
3 #[error("sqlite error: {0}")]
4 Sqlite(#[from] rusqlite::Error),
5
6 #[error("failed to prepare revocation store directory: {0}")]
7 Io(#[from] std::io::Error),
8
9 #[error("revocation store synchronization error: {0}")]
10 Sync(String),
11
12 #[error("revocation mutation durable outcome is unknown: {0}")]
13 OutcomeUnknown(String),
14
15 #[error(
16 "revocation store serving owner fenced (expected epoch {expected_epoch}, actual {actual_epoch:?})"
17 )]
18 Fenced {
19 expected_epoch: u64,
20 actual_epoch: Option<u64>,
21 },
22}
23
24#[derive(Debug, Clone, PartialEq, Eq)]
25pub struct RevocationRecord {
26 pub capability_id: String,
27 pub revoked_at: i64,
28}