pub enum Source {
Stored,
Peers {
discovered: Discovered,
proof_peers: Vec<ClientConnection>,
finalized: u64,
},
Local {
blocks: Vec<Block>,
},
}Expand description
実行するブロックをどこから取るか
Variants§
Stored
DB にしまったブロック(状態を消して実行し直すときなど)
Peers
ピアから取る。discovered からブロックを分け合って取り、proof_peers から確定の証明を取る。
finalized はピアの言う確定の高さで、そこまで実行する
Local
手元にあるブロック(Nemesis の seed など)。高さの順に。しまってあるブロックと同じに確かめて実行し、しまう
Auto Trait Implementations§
impl !RefUnwindSafe for Source
impl !UnwindSafe for Source
impl Freeze for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
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