pub struct DHTStorage { /* private fields */ }
Expand description
DHT storage for local records
Implementations§
Source§impl DHTStorage
impl DHTStorage
Sourcepub async fn cleanup_expired(&self) -> usize
pub async fn cleanup_expired(&self) -> usize
Remove expired records
Sourcepub async fn all_records(&self) -> Vec<Record>
pub async fn all_records(&self) -> Vec<Record>
Get all stored records (for republishing)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DHTStorage
impl !RefUnwindSafe for DHTStorage
impl Send for DHTStorage
impl Sync for DHTStorage
impl Unpin for DHTStorage
impl !UnwindSafe for DHTStorage
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