pub trait VecProgressEntry {
type Id: 'static + PartialEq;
type Progress: Clone + Default + Ord;
// Required methods
fn id(&self) -> &Self::Id;
fn progress(&self) -> &Self::Progress;
fn progress_mut(&mut self) -> &mut Self::Progress;
// Provided methods
fn id_progress(&self) -> (&Self::Id, &Self::Progress) { ... }
fn id_progress_owned(&self) -> (Self::Id, Self::Progress)
where Self::Id: Clone { ... }
}Expand description
Entry stored in VecProgress.
VecProgress only uses the ID and progress value. Other entry fields are
application-owned state.
Required Associated Types§
Required Methods§
Sourcefn progress(&self) -> &Self::Progress
fn progress(&self) -> &Self::Progress
Return the progress value used to calculate quorum acceptance.
Sourcefn progress_mut(&mut self) -> &mut Self::Progress
fn progress_mut(&mut self) -> &mut Self::Progress
Return the mutable progress value.
Provided Methods§
Sourcefn id_progress(&self) -> (&Self::Id, &Self::Progress)
fn id_progress(&self) -> (&Self::Id, &Self::Progress)
Return the ID and progress value as references.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".