Struct solana_entry::poh::Poh
source · pub struct Poh {
pub hash: Hash,
/* private fields */
}Fields§
§hash: HashImplementations§
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 Freeze for Poh
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more