pub struct Context<'a> {
pub parameters: &'static NetworkParameters,
pub nemesis: Hash256,
pub stopping: &'a (dyn Fn() -> bool + Sync),
pub connect: &'a (dyn Fn() -> Result<ClientConnection, NodeError> + Sync),
}Expand description
追いつく段階に渡すもの
Fields§
§parameters: &'static NetworkParameters§nemesis: Hash256このネットワークの Nemesis のブロックのハッシュ
stopping: &'a (dyn Fn() -> bool + Sync)止める合図。真になったら、まだコミットしていない分を捨てて終わる
connect: &'a (dyn Fn() -> Result<ClientConnection, NodeError> + Sync)終わったあと、抜けている確定の証明を取るのにつなぐ
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
impl<'a> Freeze for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnsafeUnpin for Context<'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