type PullHeadersScheduler = FireForgetScheduler<HeaderHash, NodeId, Checkpoints>;

Aliased Type§

struct PullHeadersScheduler {
    sender: Sender<Command<Hash, NodeId, Checkpoints>>,
}

Fields§

§sender: Sender<Command<Hash, NodeId, Checkpoints>>

Implementations§

source§

impl<TID, WID, Data> FireForgetScheduler<TID, WID, Data>

source

pub fn schedule(&mut self, tid: TID, wid: WID, data: Data) -> Result<(), Error>

Schedules a task to be launched. If task with same TID and WID is already queued, it has no effect.

source

pub fn declare_completed(&mut self, task: TID) -> Result<(), Error>

Declares all tasks with given TID completed. Queued instances will be canceled and running ones will be considered finished.

source

fn try_send(&mut self, command: Command<TID, WID, Data>) -> Result<(), Error>

Trait Implementations§

source§

impl<TID, WID, Data> Clone for FireForgetScheduler<TID, WID, Data>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more