pub trait DistributedBorrow<T> { // Required method fn try_hire( &self, candidate_id: u128, term: Duration, ) -> Result<Lease<T>, LeaseError>; }
Trait for distributed borrow operations.
Attempt to acquire a lease on the resource.