Enum ethjson::spec::step_duration::StepDuration
source · [−]Expand description
Step duration can be specified either as a Uint
(in seconds), in which case it will be
constant, or as a list of pairs consisting of a timestamp of type Uint
and a duration, in
which case the duration of a step will be determined by a mapping arising from that list.
Variants
Single(Uint)
Duration of all steps.
Transitions(BTreeMap<Uint, Uint>)
Step duration transitions: a mapping of timestamp to step durations.
Trait Implementations
sourceimpl Debug for StepDuration
impl Debug for StepDuration
sourceimpl<'de> Deserialize<'de> for StepDuration
impl<'de> Deserialize<'de> for StepDuration
sourcefn 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
sourceimpl PartialEq<StepDuration> for StepDuration
impl PartialEq<StepDuration> for StepDuration
sourcefn eq(&self, other: &StepDuration) -> bool
fn eq(&self, other: &StepDuration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StepDuration) -> bool
fn ne(&self, other: &StepDuration) -> bool
This method tests for !=
.
impl StructuralPartialEq for StepDuration
Auto Trait Implementations
impl RefUnwindSafe for StepDuration
impl Send for StepDuration
impl Sync for StepDuration
impl Unpin for StepDuration
impl UnwindSafe for StepDuration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more