pub struct PlanExecutor { /* private fields */ }Implementations§
Source§impl PlanExecutor
impl PlanExecutor
pub fn new(abort_on_failure: bool) -> Self
pub fn add_step(&mut self, name: &str)
pub fn complete_current(&mut self, duration_ms: u32) -> bool
pub fn fail_current(&mut self, reason: &str) -> bool
pub fn skip_current(&mut self) -> bool
pub fn is_complete(&self) -> bool
pub fn is_aborted(&self) -> bool
pub fn step_count(&self) -> usize
pub fn done_count(&self) -> usize
pub fn failed_count(&self) -> usize
pub fn pending_count(&self) -> usize
pub fn current_step(&self) -> Option<&PlanStep>
pub fn steps(&self) -> &[PlanStep]
pub fn total_duration_ms(&self) -> u32
pub fn reset(&mut self)
Auto Trait Implementations§
impl Freeze for PlanExecutor
impl RefUnwindSafe for PlanExecutor
impl Send for PlanExecutor
impl Sync for PlanExecutor
impl Unpin for PlanExecutor
impl UnsafeUnpin for PlanExecutor
impl UnwindSafe for PlanExecutor
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