pub struct SyncReceiver<N: Network> {
pub rx_block_sync_insert_block_response: Receiver<(SocketAddr, Vec<Block<N>>, Option<ConsensusVersion>, Sender<Result<(), InsertBlockResponseError<N>>>)>,
pub rx_block_sync_remove_peer: Receiver<SocketAddr>,
pub rx_block_sync_update_peer_locators: Receiver<(SocketAddr, BlockLocators<N>, Sender<Result<()>>)>,
pub rx_certificate_request: Receiver<(SocketAddr, CertificateRequest<N>)>,
pub rx_certificate_response: Receiver<(SocketAddr, CertificateResponse<N>)>,
}Fields§
§rx_block_sync_insert_block_response: Receiver<(SocketAddr, Vec<Block<N>>, Option<ConsensusVersion>, Sender<Result<(), InsertBlockResponseError<N>>>)>§rx_block_sync_remove_peer: Receiver<SocketAddr>§rx_block_sync_update_peer_locators: Receiver<(SocketAddr, BlockLocators<N>, Sender<Result<()>>)>§rx_certificate_request: Receiver<(SocketAddr, CertificateRequest<N>)>§rx_certificate_response: Receiver<(SocketAddr, CertificateResponse<N>)>Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for SyncReceiver<N>
impl<N> RefUnwindSafe for SyncReceiver<N>
impl<N> Send for SyncReceiver<N>
impl<N> Sync for SyncReceiver<N>
impl<N> Unpin for SyncReceiver<N>
impl<N> UnsafeUnpin for SyncReceiver<N>
impl<N> UnwindSafe for SyncReceiver<N>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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