Struct libp2p_kad::record::Record
source · 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<Record> for Record
impl PartialEq<Record> for Record
impl Eq for Record
impl StructuralEq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
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