Struct ccp_shared::types::EpochParameters
source · 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 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 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 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§fn eq(&self, other: &EpochParameters) -> bool
fn eq(&self, other: &EpochParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)