pub trait Lock: Debug + Send + Sync + 'static {
// Required method
fn try_exclusive(&self) -> Result<(), LockError>;
}
Expand description
A trait for describing repository locking.
This ensures no two IPFS nodes can be started with the same peer ID, as exclusive access to the repository is guarenteed. This is most useful when using an fs backed repo.