pub struct HarvestOutlook {
pub parent: SystemTime,
pub importance: u64,
pub active_importance: f64,
pub per_block: f64,
pub block_seconds: f64,
pub next: Option<f64>,
}Expand description
Chain::harvest_outlook が返す、ハーベストの見込み。画面に見せるための見積もりで、合意には使わない
(crate::outlook)
Fields§
§parent: SystemTime今の先端(作るブロックの親)の時刻(UTC)。当たりまでのメーターの始まり
importance: u64自分の鍵の Importance の合計
active_importance: f64直近のブロックから見積もった、ハーベストしている Importance の合計(自分を含む)
per_block: f641つのブロックを自分が作る見込み
block_seconds: f64直近のブロックの平均の間隔(秒)
next: Option<f64>次の当たりで、ほかのだれにも先を越されない見込み(同じ秒に並ぶものは半々)。当たりがなければ None
Trait Implementations§
Source§impl Clone for HarvestOutlook
impl Clone for HarvestOutlook
Source§fn clone(&self) -> HarvestOutlook
fn clone(&self) -> HarvestOutlook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HarvestOutlook
Source§impl Debug for HarvestOutlook
impl Debug for HarvestOutlook
Source§impl PartialEq for HarvestOutlook
impl PartialEq for HarvestOutlook
impl StructuralPartialEq for HarvestOutlook
Auto Trait Implementations§
impl Freeze for HarvestOutlook
impl RefUnwindSafe for HarvestOutlook
impl Send for HarvestOutlook
impl Sync for HarvestOutlook
impl Unpin for HarvestOutlook
impl UnsafeUnpin for HarvestOutlook
impl UnwindSafe for HarvestOutlook
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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