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>,
) -> Option<&mut bool>;
}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§
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>, ) -> Option<&mut bool>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".