pub struct MemoryLeaseStore(/* private fields */);Expand description
Process-local store, for hosts that persist elsewhere and for tests.
Implementations§
Trait Implementations§
Source§impl Debug for MemoryLeaseStore
impl Debug for MemoryLeaseStore
Source§impl Default for MemoryLeaseStore
impl Default for MemoryLeaseStore
Source§impl LeaseStore for MemoryLeaseStore
impl LeaseStore for MemoryLeaseStore
Source§fn load(&self) -> Result<Option<LeaseRecord>, StoreError>
fn load(&self) -> Result<Option<LeaseRecord>, StoreError>
Ok(None) when nothing was ever saved.fn save(&self, record: &LeaseRecord) -> Result<(), StoreError>
Auto Trait Implementations§
impl !Freeze for MemoryLeaseStore
impl RefUnwindSafe for MemoryLeaseStore
impl Send for MemoryLeaseStore
impl Sync for MemoryLeaseStore
impl Unpin for MemoryLeaseStore
impl UnsafeUnpin for MemoryLeaseStore
impl UnwindSafe for MemoryLeaseStore
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