Struct libp2p_kad::record::Record [−][src]
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: KeyKey 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
Auto Trait Implementations
impl RefUnwindSafe for Record
impl UnwindSafe for Record
Blanket Implementations
Mutably borrows from an owned value. Read more