Skip to main content

WorkerTemplate

Trait WorkerTemplate 

Source
pub trait WorkerTemplate:
    Send
    + Sync
    + Clone
    + AsProgressStyle
    + 'static {
    // Required methods
    fn new(label: impl ToString) -> Self;
    fn increment(&self, count: usize);
    fn add_worker(&self, id: Uid, body: String);
    fn remove_worker(&self, id: &Uid);
    fn edit_worker(&self, id: &Uid, body: String);
}

Required Methods§

Source

fn new(label: impl ToString) -> Self

Source

fn increment(&self, count: usize)

Source

fn add_worker(&self, id: Uid, body: String)

Source

fn remove_worker(&self, id: &Uid)

Source

fn edit_worker(&self, id: &Uid, body: String)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§