pub trait Instance {
// Required methods
fn acquire(&self, lock: &Lock) -> Result<(), RedsyncError>;
fn extend(&self, lock: &Lock) -> Result<(), RedsyncError>;
fn release(&self, lock: &Lock) -> Result<(), RedsyncError>;
}
Expand description
Instance
represents an entity with locking and unlocking capabilities.