Struct solana_sdk::poh_config::PohConfig[][src]

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

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.