Struct xstack_kad::KadMemoryStore
source · pub struct KadMemoryStore(/* private fields */);
Implementations§
Trait Implementations§
source§impl DriverKadStore for KadMemoryStore
impl DriverKadStore for KadMemoryStore
source§fn insert<'life0, 'async_trait>(
&'life0 self,
key: KBucketKey,
record: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert<'life0, 'async_trait>(
&'life0 self,
key: KBucketKey,
record: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
insert a new kad record.
Auto Trait Implementations§
impl !Freeze for KadMemoryStore
impl !RefUnwindSafe for KadMemoryStore
impl Send for KadMemoryStore
impl Sync for KadMemoryStore
impl Unpin for KadMemoryStore
impl UnwindSafe for KadMemoryStore
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