pub struct Renter { /* private fields */ }Implementations§
Source§impl Renter
impl Renter
pub fn new() -> Self
pub async fn acquire_lease(&self, guid: String) -> Result<Lease>
pub async fn drop_lease(&self, guid: &str) -> Result<()>
pub async fn drop_all(&self)
pub fn iter(&self) -> impl Iterator<Item = String>
pub fn has_lease(&self, guid: &str) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Renter
impl !RefUnwindSafe for Renter
impl Send for Renter
impl Sync for Renter
impl Unpin for Renter
impl !UnwindSafe for Renter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)