pub struct OwnedBlockHeaderConsensusParameters {
pub fixed_parameters: BlockHeaderFixedConsensusParameters,
pub super_segment_root: Option<SuperSegmentRoot>,
pub next_solution_range: Option<SolutionRange>,
pub pot_parameters_change: Option<BlockHeaderPotParametersChange>,
}
Expand description
Owned version of BlockHeaderConsensusParameters
Fields§
§fixed_parameters: BlockHeaderFixedConsensusParameters
Consensus parameters that are always present
super_segment_root: Option<SuperSegmentRoot>
Super segment root
next_solution_range: Option<SolutionRange>
Solution range for the next block/era (if any)
pot_parameters_change: Option<BlockHeaderPotParametersChange>
Change of parameters to apply to the proof of time chain (if any)
Implementations§
Source§impl OwnedBlockHeaderConsensusParameters
impl OwnedBlockHeaderConsensusParameters
Sourcepub fn as_ref(&self) -> BlockHeaderConsensusParameters<'_>
pub fn as_ref(&self) -> BlockHeaderConsensusParameters<'_>
Get a reference out of owned version
Trait Implementations§
Source§impl Clone for OwnedBlockHeaderConsensusParameters
impl Clone for OwnedBlockHeaderConsensusParameters
Source§fn clone(&self) -> OwnedBlockHeaderConsensusParameters
fn clone(&self) -> OwnedBlockHeaderConsensusParameters
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 moreimpl Copy for OwnedBlockHeaderConsensusParameters
Auto Trait Implementations§
impl Freeze for OwnedBlockHeaderConsensusParameters
impl RefUnwindSafe for OwnedBlockHeaderConsensusParameters
impl Send for OwnedBlockHeaderConsensusParameters
impl Sync for OwnedBlockHeaderConsensusParameters
impl Unpin for OwnedBlockHeaderConsensusParameters
impl UnwindSafe for OwnedBlockHeaderConsensusParameters
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more