pub struct DHTStore { /* private fields */ }Expand description
DHT storage backend
Implementations§
Source§impl DHTStore
impl DHTStore
Sourcepub fn cleanup_expired(&mut self) -> usize
pub fn cleanup_expired(&mut self) -> usize
Remove expired entries
Sourcepub fn get_expiring_soon(
&self,
threshold: Duration,
) -> Vec<([u8; 32], StoredValue)>
pub fn get_expiring_soon( &self, threshold: Duration, ) -> Vec<([u8; 32], StoredValue)>
Get values that need republishing (approaching expiry)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DHTStore
impl RefUnwindSafe for DHTStore
impl Send for DHTStore
impl Sync for DHTStore
impl Unpin for DHTStore
impl UnsafeUnpin for DHTStore
impl UnwindSafe for DHTStore
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