Skip to main content

Originator

Trait Originator 

Source
pub trait Originator {
    // Required methods
    fn report(&mut self, info: ProgressInfo<'_>);
    fn phase_begin_(&mut self, phase: Count<'_>, len: usize);
    fn item_(&mut self, item: usize, desc: Cow<'_, str>);
}

Required Methods§

Source

fn report(&mut self, info: ProgressInfo<'_>)

Source

fn phase_begin_(&mut self, phase: Count<'_>, len: usize)

Source

fn item_(&mut self, item: usize, desc: Cow<'_, str>)

Trait Implementations§

Source§

impl OriginatorExt for &mut dyn Originator

Source§

fn phase_item<'p, 'e, P, E>(&mut self, phase: P, item: E)
where P: Into<Count<'p>>, E: Into<Count<'e>>,

Source§

fn phase<'p, P>(&mut self, phase: P, len: usize)
where P: Into<Count<'p>>,

Source§

fn item<'s, S>(&mut self, item: usize, desc: S)
where S: Into<Cow<'s, str>>,

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Originator for ()

Source§

fn report(&mut self, pi: ProgressInfo<'_>)

Source§

fn phase_begin_(&mut self, phase: Count<'_>, len: usize)

Source§

fn item_(&mut self, item: usize, desc: Cow<'_, str>)

Implementors§

Source§

impl<W, F, M> Originator for ResponseOriginator<'_, '_, W, F>
where W: Write, F: Fn(ProgressInfo<'_>) -> M, M: Serialize,