pub struct ChecklistState { /* private fields */ }Expand description
Shared checklist state. Clone it to share between the tool, the gate and your own code. Use one per run or session.
Implementations§
Source§impl ChecklistState
impl ChecklistState
pub fn new() -> Self
pub fn items(&self) -> Vec<ChecklistItem>
Sourcepub fn open_items(&self) -> Vec<ChecklistItem>
pub fn open_items(&self) -> Vec<ChecklistItem>
Items work is still expected on: pending or in progress, or superseded by one that is.
Sourcepub fn unmet_items(&self) -> Vec<ChecklistItem>
pub fn unmet_items(&self) -> Vec<ChecklistItem>
Items that will not be met in this run: deferred, or superseded by an item that will not be met.
Sourcepub fn set(&self, items: Vec<ChecklistItem>)
pub fn set(&self, items: Vec<ChecklistItem>)
Replace the list as the application (no provenance checks). The model’s updates go through the tool, which checks them.
Trait Implementations§
Source§impl Clone for ChecklistState
impl Clone for ChecklistState
Source§impl Debug for ChecklistState
impl Debug for ChecklistState
Auto Trait Implementations§
impl Forget for ChecklistState
impl Freeze for ChecklistStatewhere
*const ArcInner<Mutex<Vec<ChecklistItem>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Vec<ChecklistItem>>>>: Freeze,
impl Move for ChecklistState
impl RefUnwindSafe for ChecklistState
impl Send for ChecklistState
impl Sync for ChecklistState
impl Unpin for ChecklistState
impl UnsafeUnpin for ChecklistStatewhere
*const ArcInner<Mutex<Vec<ChecklistItem>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Vec<ChecklistItem>>>>: UnsafeUnpin,
impl UnwindSafe for ChecklistState
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