Struct libp2p::kad::record::Record [−][src]
pub struct Record {
pub key: Key,
pub value: Vec<u8, Global>,
pub publisher: Option<PeerId>,
pub expires: Option<Instant>,
}A record stored in the DHT.
Fields
key: KeyKey of the record.
value: Vec<u8, Global>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
impl Record[src]
impl Record[src]