Skip to main content

SnapshotBackend

Trait SnapshotBackend 

Source
pub trait SnapshotBackend {
    // Required methods
    fn supported(&self) -> bool;
    fn snapshot(&self, label: &str, op: &OpId) -> Result<SnapshotId, Outcome>;
    fn restore(&self, id: &SnapshotId, op: &OpId) -> Outcome;
    fn usage_bytes(&self) -> u64;
}

Required Methods§

Source

fn supported(&self) -> bool

Source

fn snapshot(&self, label: &str, op: &OpId) -> Result<SnapshotId, Outcome>

Source

fn restore(&self, id: &SnapshotId, op: &OpId) -> Outcome

Source

fn usage_bytes(&self) -> u64

Implementors§