pub enum HarvestPlan {
NotPlanned,
NoHit,
Hit {
height: u64,
timestamp: SystemTime,
},
}Expand description
Chain::harvest_plan が返す、今の先端の上でのハーベストの当たり
Variants§
NotPlanned
求めていない。ハーベストしないか、先端が変わってまだ求め直していないか、ピアの高さを聞けていないか、 ほかのピアが先にいて追いつくのを待っている
NoHit
親から1時間先までに当たりがない(作ったあと、次の先端を待つあいだも、これになる)
Hit
高さ height のブロックを、時刻 timestamp(UTC)で作れる。作るのは、その時刻の
maxBlockFutureTime 前から
Trait Implementations§
Source§impl Clone for HarvestPlan
impl Clone for HarvestPlan
Source§fn clone(&self) -> HarvestPlan
fn clone(&self) -> HarvestPlan
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 HarvestPlan
Source§impl Debug for HarvestPlan
impl Debug for HarvestPlan
impl Eq for HarvestPlan
Source§impl PartialEq for HarvestPlan
impl PartialEq for HarvestPlan
impl StructuralPartialEq for HarvestPlan
Auto Trait Implementations§
impl Freeze for HarvestPlan
impl RefUnwindSafe for HarvestPlan
impl Send for HarvestPlan
impl Sync for HarvestPlan
impl Unpin for HarvestPlan
impl UnsafeUnpin for HarvestPlan
impl UnwindSafe for HarvestPlan
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