pub struct StoredValue {
pub data: Bytes,
pub publisher: [u8; 32],
pub timestamp: Instant,
pub ttl: u64,
pub signature: Option<Vec<u8>>,
}Expand description
Value stored in DHT
Fields§
§data: BytesThe actual data
publisher: [u8; 32]Publisher peer ID (as bytes)
timestamp: InstantPublication timestamp
ttl: u64Time-to-live in seconds
signature: Option<Vec<u8>>Signature (optional)
Implementations§
Trait Implementations§
Source§impl Clone for StoredValue
impl Clone for StoredValue
Source§fn clone(&self) -> StoredValue
fn clone(&self) -> StoredValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for StoredValue
impl RefUnwindSafe for StoredValue
impl Send for StoredValue
impl Sync for StoredValue
impl Unpin for StoredValue
impl UnsafeUnpin for StoredValue
impl UnwindSafe for StoredValue
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