Skip to main content

Progress

Trait Progress 

Source
pub trait Progress<T: Codec> {
    // Required methods
    fn next(&mut self, queue: Queue<'_, T>) -> Option<Option<T::Tuning>>;
    fn has_pending(&self) -> bool;
    fn cancel_all(&mut self);
    fn cancel_at(
        &mut self,
        slot: Fixed,
        target: Option<<<T as Codec>::Context as Context>::Key>,
    ) -> ControlFlow<()>;
}
Expand description

Native option completions retain their host flight until every submitted scalar has completed and, when requested, the separate connect has finished.

Required Methods§

Source

fn next(&mut self, queue: Queue<'_, T>) -> Option<Option<T::Tuning>>

Source

fn has_pending(&self) -> bool

Source

fn cancel_all(&mut self)

Source

fn cancel_at( &mut self, slot: Fixed, target: Option<<<T as Codec>::Context as Context>::Key>, ) -> ControlFlow<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§