pub struct Peer {
pub address: String,
pub connection: ClientConnection,
}Expand description
1回の Pull_Blocks で頼む上限。catapult の既定の maxBlocksPerSyncAttempt。多く頼んでも、ノードはここで
切り詰めるので、残りを頼み直すことになる
つないだピア。アドレスは、つなぎ直すのと、同じノードに二度つながないためだけに持ち、どこにも出さない
Fields§
§address: String§connection: ClientConnectionAuto Trait Implementations§
impl !RefUnwindSafe for Peer
impl !UnwindSafe for Peer
impl Freeze for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnsafeUnpin for Peer
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