pub struct StateRepeatPolicy { /* private fields */ }Expand description
Bounded repetition of every step in one ceremony state.
Implementations§
Source§impl StateRepeatPolicy
impl StateRepeatPolicy
pub fn new( max_iterations: StateIteration, until: StateRepeatUntilCondition, ) -> Self
pub const fn max_iterations(&self) -> StateIteration
pub const fn until(&self) -> &StateRepeatUntilCondition
pub fn is_satisfied(&self, record: &StepExecutionRecord) -> bool
pub fn permits_another_iteration(&self, current: StateIteration) -> bool
Trait Implementations§
Source§impl Clone for StateRepeatPolicy
impl Clone for StateRepeatPolicy
Source§impl Debug for StateRepeatPolicy
impl Debug for StateRepeatPolicy
Source§impl<'de> Deserialize<'de> for StateRepeatPolicy
impl<'de> Deserialize<'de> for StateRepeatPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StateRepeatPolicy
Source§impl PartialEq for StateRepeatPolicy
impl PartialEq for StateRepeatPolicy
Source§impl Serialize for StateRepeatPolicy
impl Serialize for StateRepeatPolicy
impl StructuralPartialEq for StateRepeatPolicy
Auto Trait Implementations§
impl Freeze for StateRepeatPolicy
impl RefUnwindSafe for StateRepeatPolicy
impl Send for StateRepeatPolicy
impl Sync for StateRepeatPolicy
impl Unpin for StateRepeatPolicy
impl UnsafeUnpin for StateRepeatPolicy
impl UnwindSafe for StateRepeatPolicy
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