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: u64The seed to associate with an invocation.
timestamp: u64The 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 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 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
Source§impl Serialize for InherentData
impl Serialize for InherentData
impl Copy for InherentData
Auto Trait Implementations§
impl Freeze for InherentData
impl RefUnwindSafe for InherentData
impl Send for InherentData
impl Sync for InherentData
impl Unpin for InherentData
impl UnwindSafe for InherentData
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