[][src]Struct ckb_sync::Synchronizer

pub struct Synchronizer {
    pub shared: Arc<SyncShared>,
    // some fields omitted
}

TODO(doc): @driftluo

Fields

shared: Arc<SyncShared>

TODO(doc): @driftluo

Implementations

impl Synchronizer[src]

pub fn new(chain: ChainController, shared: Arc<SyncShared>) -> Synchronizer[src]

TODO(doc): @driftluo

pub fn shared(&self) -> &Arc<SyncShared>[src]

TODO(doc): @driftluo

pub fn peers(&self) -> &Peers[src]

TODO(doc): @driftluo

pub fn process_new_block(&self, block: BlockView) -> Result<bool, FailureError>[src]

TODO(doc): @driftluo

pub fn get_blocks_to_fetch(
    &self,
    peer: PeerIndex,
    ibd: IBDState
) -> Option<Vec<Vec<Byte32>>>
[src]

TODO(doc): @driftluo

pub fn eviction(&self, nc: &dyn CKBProtocolContext)[src]

TODO(doc): @driftluo

Trait Implementations

impl CKBProtocolHandler for Synchronizer[src]

impl Clone for Synchronizer[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

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

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

impl<T> Erased for T

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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