pub struct View<'a> {
pub now: u64,
pub finalized: FinalizedBlockHeader,
pub chain_height: u64,
pub voters: &'a dyn Fn(u32) -> Option<VotingSet>,
pub hashes: &'a dyn Fn(u64, u64) -> Vec<Hash256>,
}Expand description
進めるときに渡す、チェーンの様子
Fields§
§now: u64ネットワークの時刻(ミリ秒)
finalized: FinalizedBlockHeader中核の確定
chain_height: u64手元のチェーンの先端の高さ
voters: &'a dyn Fn(u32) -> Option<VotingSet>エポックの投票者
hashes: &'a dyn Fn(u64, u64) -> Vec<Hash256>手元のチェーンの、高さ from から count 個のブロックのハッシュ(あるだけ)
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for View<'a>
impl<'a> !Send for View<'a>
impl<'a> !Sync for View<'a>
impl<'a> !UnwindSafe for View<'a>
impl<'a> Freeze for View<'a>
impl<'a> Unpin for View<'a>
impl<'a> UnsafeUnpin for View<'a>
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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