Struct libp2p::kad::Record [−][src]
pub struct Record {
pub key: Key,
pub value: Vec<u8, Global>,
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, 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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Record
impl UnwindSafe for Record
Blanket Implementations
Mutably borrows from an owned value. Read more