Struct solana_entry::poh::Poh
source · pub struct Poh {
pub hash: Hash,
num_hashes: u64,
hashes_per_tick: u64,
remaining_hashes: u64,
tick_number: u64,
slot_start_time: Instant,
}
Fields§
§hash: Hash
§num_hashes: u64
§hashes_per_tick: u64
§remaining_hashes: u64
§tick_number: u64
§slot_start_time: Instant
Implementations§
source§impl Poh
impl Poh
pub fn new(hash: Hash, hashes_per_tick: Option<u64>) -> Self
pub fn new_with_slot_info( hash: Hash, hashes_per_tick: Option<u64>, tick_number: u64 ) -> Self
pub fn reset(&mut self, hash: Hash, hashes_per_tick: Option<u64>)
pub fn hashes_per_tick(&self) -> u64
pub fn target_poh_time(&self, target_ns_per_tick: u64) -> Instant
pub fn hash(&mut self, max_num_hashes: u64) -> bool
pub fn record(&mut self, mixin: Hash) -> Option<PohEntry>
pub fn tick(&mut self) -> Option<PohEntry>
Auto Trait Implementations§
impl RefUnwindSafe for Poh
impl Send for Poh
impl Sync for Poh
impl Unpin for Poh
impl UnwindSafe for Poh
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