pub struct PohConfig {
    pub target_tick_duration: Duration,
    pub target_tick_count: Option<u64>,
    pub hashes_per_tick: Option<u64>,
}

Fields

target_tick_duration: Duration

The target tick rate of the cluster.

target_tick_count: Option<u64>

The target total tick count to be produced; used for testing only

hashes_per_tick: Option<u64>

How many hashes to roll before emitting the next tick entry. None enables “Low power mode”, which implies:

  • sleep for target_tick_duration instead of hashing
  • the number of hashes per tick will be variable

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.