Trait iroh_blobs::util::progress::IdGenerator

source ·
pub trait IdGenerator {
    // Required method
    fn new_id(&self) -> u64;
}
Expand description

An id generator, to be combined with a progress sender.

Required Methods§

source

fn new_id(&self) -> u64

Get a new unique id

Implementations on Foreign Types§

source§

impl<T: Send + Sync + 'static> IdGenerator for Arc<dyn BoxableProgressSender<T>>

source§

fn new_id(&self) -> u64

Implementors§

source§

impl<I: IdGenerator + ProgressSender, U: Send + Sync + 'static, F: Fn(U) -> I::Msg + Clone + Send + Sync + 'static> IdGenerator for WithMap<I, U, F>

source§

impl<I: IdGenerator, U, F> IdGenerator for WithFilterMap<I, U, F>

source§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

source§

impl<T> IdGenerator for IgnoreProgressSender<T>

source§

impl<T: Send + Sync + 'static> IdGenerator for BoxedProgressSender<T>