pub struct LeaseRegistry { /* private fields */ }Implementations§
Source§impl LeaseRegistry
impl LeaseRegistry
pub fn new() -> Self
pub fn get_or_create(&self, name: &str) -> Arc<InMemoryLease>
Trait Implementations§
Source§impl Default for LeaseRegistry
impl Default for LeaseRegistry
Source§fn default() -> LeaseRegistry
fn default() -> LeaseRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for LeaseRegistry
impl !RefUnwindSafe for LeaseRegistry
impl Send for LeaseRegistry
impl Sync for LeaseRegistry
impl Unpin for LeaseRegistry
impl UnsafeUnpin for LeaseRegistry
impl !UnwindSafe for LeaseRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more