pub struct Record {
pub key: Key,
pub value: Vec<u8>,
pub publisher: Option<PeerId>,
pub expires: Option<Instant>,
}
Expand description
A record stored in the DHT.
Fields§
§key: Key
Key of the record.
value: Vec<u8>
Value of the record.
publisher: Option<PeerId>
The (original) publisher of the record.
expires: Option<Instant>
The expiration time as measured by a local, monotonic clock.
Implementations§
Trait Implementations§
source§impl PartialEq for Record
impl PartialEq for Record
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl !Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.