Struct vapcore_sync::VapSync[][src]

pub struct VapSync { /* fields omitted */ }

Vapory network protocol handler

Implementations

impl VapSync[src]

pub fn new(
    params: Params,
    connection_filter: Option<Arc<dyn ConnectionFilter>>
) -> Result<Arc<VapSync>, Error>
[src]

Creates and register protocol with the network service

pub fn priority_tasks(&self) -> Sender<PriorityTask>[src]

Priority tasks producer

Trait Implementations

impl ChainNotify for VapSync[src]

impl ManageNetwork for VapSync[src]

impl SyncProvider for VapSync[src]

fn status(&self) -> VapSyncStatus[src]

Get sync status

fn peers(&self) -> Vec<PeerInfo>[src]

Get sync peers

Auto Trait Implementations

impl !RefUnwindSafe for VapSync

impl Send for VapSync

impl Sync for VapSync

impl Unpin for VapSync

impl !UnwindSafe for VapSync

Blanket Implementations

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

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, 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>,