Struct wick_packet::InherentData
source · pub struct InherentData {
pub seed: u64,
pub timestamp: u64,
}
Expand description
Data inherent to an invocation. Meant to be supplied by a runtime, not a user.
Fields§
§seed: u64
The seed to associate with an invocation.
timestamp: u64
The timestamp to associate with an invocation.
Implementations§
source§impl InherentData
impl InherentData
sourcepub fn new(seed: u64, timestamp: u64) -> Self
pub fn new(seed: u64, timestamp: u64) -> Self
Constructor for InherentData
Trait Implementations§
source§impl Clone for InherentData
impl Clone for InherentData
source§fn clone(&self) -> InherentData
fn clone(&self) -> InherentData
Returns a copy 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 moresource§impl Debug for InherentData
impl Debug for InherentData
source§impl<'de> Deserialize<'de> for InherentData
impl<'de> Deserialize<'de> for InherentData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more