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: 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
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Recordimpl UnwindSafe for RecordBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V