pub struct ObjectiveView {
pub index: usize,
pub spec: ObjectiveSpec,
pub state: ObjectiveState,
pub progress: ObjectiveProgress,
pub blockers: ObjectiveBlockers,
}Expand description
An owned, read-only observation returned by ObjectiveGraph::inspect.
Later graph mutations do not update an existing view; inspect again to refresh
it. A ready objective has no blockers. A complete objective also has none, so
use state rather than empty blocker masks to decide whether work is accepted.
Fields§
§index: usizeDeclaration slot, also used by prerequisite masks and graph queries.
spec: ObjectiveSpecAuthored specification, including its stable ID and event/timer target.
state: ObjectiveStateThe same state returned by ObjectiveGraph::state.
progress: ObjectiveProgressRecorded work; completion is determined by state.
blockers: ObjectiveBlockersImmediate blockers, including any selected exclusive peer.
Trait Implementations§
Source§impl Clone for ObjectiveView
impl Clone for ObjectiveView
Source§fn clone(&self) -> ObjectiveView
fn clone(&self) -> ObjectiveView
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 ObjectiveView
impl Debug for ObjectiveView
Source§impl PartialEq for ObjectiveView
impl PartialEq for ObjectiveView
impl Copy for ObjectiveView
impl StructuralPartialEq for ObjectiveView
Auto Trait Implementations§
impl Freeze for ObjectiveView
impl RefUnwindSafe for ObjectiveView
impl Send for ObjectiveView
impl Sync for ObjectiveView
impl Unpin for ObjectiveView
impl UnwindSafe for ObjectiveView
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