[][src]Struct zebrad::commands::connect::Connect

struct Connect<ZN, ZS> where
    ZN: Service<Request>, 
{ retry_peer_set: Retry<RetryErrors, ZN>, peer_set: ZN, state: ZS, tip: BlockHeaderHash, block_requests: FuturesUnordered<ZN::Future>, requested_block_heights: usize, downloaded_block_heights: BTreeSet<BlockHeight>, }

Fields

retry_peer_set: Retry<RetryErrors, ZN>peer_set: ZNstate: ZStip: BlockHeaderHashblock_requests: FuturesUnordered<ZN::Future>requested_block_heights: usizedownloaded_block_heights: BTreeSet<BlockHeight>

Implementations

impl<ZN, ZS> Connect<ZN, ZS> where
    ZN: Service<Request, Response = Response, Error = Box<dyn Error + Send + Sync + 'static>> + Send + Clone + 'static,
    ZN::Future: Send,
    ZS: Service<Request, Response = Response, Error = Box<dyn Error + Send + Sync + 'static>> + Send + Clone + 'static,
    ZS::Future: Send
[src]

async fn connect<'_>(&'_ mut self) -> Result<(), Report>[src]

async fn next_hashes<'_>(&'_ mut self) -> Result<Vec<BlockHeaderHash>, Report>[src]

async fn request_blocks<'_>(
    &'_ mut self,
    hashes: Vec<BlockHeaderHash>
) -> Result<(), Report>
[src]

async fn drain_requests<'_>(
    &'_ mut self,
    request_goal: usize
) -> Result<(), Report>
[src]

Auto Trait Implementations

impl<ZN, ZS> !RefUnwindSafe for Connect<ZN, ZS>

impl<ZN, ZS> Send for Connect<ZN, ZS> where
    ZN: Send,
    ZS: Send,
    <ZN as Service<Request>>::Future: Send

impl<ZN, ZS> Sync for Connect<ZN, ZS> where
    ZN: Sync,
    ZS: Sync,
    <ZN as Service<Request>>::Future: Sync

impl<ZN, ZS> Unpin for Connect<ZN, ZS> where
    ZN: Unpin,
    ZS: Unpin

impl<ZN, ZS> !UnwindSafe for Connect<ZN, ZS>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]