pub enum ObjectiveProgress {
Event {
count: u16,
required: u16,
},
Timer {
elapsed: f32,
seconds: f32,
},
Gate,
}Expand description
Recorded work for an objective, as exposed by ObjectiveGraph::inspect.
Use ObjectiveView::state to determine completion: a skipped branch can
retain partial progress, and competing timers can both reach their target
during one step even though only the earliest one completes.
Variants§
Event
Accepted matching events, capped at the authored target.
Timer
Supplied simulation time while ready, capped at the authored target.
Gate
Gates have no independent counter and complete when prerequisites settle.
Trait Implementations§
Source§impl Clone for ObjectiveProgress
impl Clone for ObjectiveProgress
Source§fn clone(&self) -> ObjectiveProgress
fn clone(&self) -> ObjectiveProgress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectiveProgress
impl Debug for ObjectiveProgress
Source§impl PartialEq for ObjectiveProgress
impl PartialEq for ObjectiveProgress
impl Copy for ObjectiveProgress
impl StructuralPartialEq for ObjectiveProgress
Auto Trait Implementations§
impl Freeze for ObjectiveProgress
impl RefUnwindSafe for ObjectiveProgress
impl Send for ObjectiveProgress
impl Sync for ObjectiveProgress
impl Unpin for ObjectiveProgress
impl UnwindSafe for ObjectiveProgress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more