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

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

impl PohConfig[src]

pub fn new_sleep(target_tick_duration: Duration) -> Self[src]

Trait Implementations

impl AbiExample for PohConfig[src]

impl Clone for PohConfig[src]

impl Debug for PohConfig[src]

impl Default for PohConfig[src]

impl<'de> Deserialize<'de> for PohConfig[src]

impl Serialize for PohConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiEnumVisitor for T where
    T: Serialize + ?Sized
[src]

impl<T> AbiEnumVisitor for T where
    T: AbiExample + Serialize + ?Sized
[src]

impl<T> AbiExample for T[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,