pub struct EpochParameters {
pub global_nonce: GlobalNonce,
pub difficulty: Difficulty,
}
Expand description
Describes a single epoch, contains global parameters, which come from the on-chain part.
Fields§
§global_nonce: GlobalNonce
§difficulty: Difficulty
Implementations§
Source§impl EpochParameters
impl EpochParameters
pub const fn new(global_nonce: GlobalNonce, difficulty: Difficulty) -> Self
Trait Implementations§
Source§impl Clone for EpochParameters
impl Clone for EpochParameters
Source§fn clone(&self) -> EpochParameters
fn clone(&self) -> EpochParameters
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 EpochParameters
impl Debug for EpochParameters
Source§impl<'de> Deserialize<'de> for EpochParameters
impl<'de> Deserialize<'de> for EpochParameters
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 Display for EpochParameters
impl Display for EpochParameters
Source§impl From<CCProofId> for EpochParameters
impl From<CCProofId> for EpochParameters
Source§impl Hash for EpochParameters
impl Hash for EpochParameters
Source§impl PartialEq for EpochParameters
impl PartialEq for EpochParameters
Source§impl Serialize for EpochParameters
impl Serialize for EpochParameters
impl Copy for EpochParameters
impl Eq for EpochParameters
impl StructuralPartialEq for EpochParameters
Auto Trait Implementations§
impl Freeze for EpochParameters
impl RefUnwindSafe for EpochParameters
impl Send for EpochParameters
impl Sync for EpochParameters
impl Unpin for EpochParameters
impl UnwindSafe for EpochParameters
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