pub enum CeremonyActivation {
Manual,
AfterDependencies,
Loop {
after: SystemCeremonyId,
max_rounds: LoopRounds,
},
}Expand description
What makes one composed ceremony start.
Loop is the only way a design may contain a cycle: it names the
composition the cycle runs back to and how many times, so a system
that sends work round for revision is expressible and a system that
could never finish is not.
Variants§
Manual
Somebody starts it.
AfterDependencies
It starts once everything it depends on has completed.
Loop
It runs again after after, up to max_rounds times.
Implementations§
Source§impl CeremonyActivation
impl CeremonyActivation
pub const fn as_str(&self) -> &'static str
Sourcepub const fn loops_after(&self) -> Option<&SystemCeremonyId>
pub const fn loops_after(&self) -> Option<&SystemCeremonyId>
The composition this one loops back to, if it loops.
pub const fn max_rounds(&self) -> Option<LoopRounds>
Sourcepub const fn is_automatic(&self) -> bool
pub const fn is_automatic(&self) -> bool
Whether a run starts this composition without being asked.
Trait Implementations§
Source§impl Clone for CeremonyActivation
impl Clone for CeremonyActivation
Source§impl Debug for CeremonyActivation
impl Debug for CeremonyActivation
Source§impl<'de> Deserialize<'de> for CeremonyActivation
impl<'de> Deserialize<'de> for CeremonyActivation
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 CeremonyActivation
Source§impl Hash for CeremonyActivation
impl Hash for CeremonyActivation
Source§impl Ord for CeremonyActivation
impl Ord for CeremonyActivation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CeremonyActivation
impl PartialEq for CeremonyActivation
Source§impl PartialOrd for CeremonyActivation
impl PartialOrd for CeremonyActivation
Source§impl Serialize for CeremonyActivation
impl Serialize for CeremonyActivation
impl StructuralPartialEq for CeremonyActivation
Auto Trait Implementations§
impl Freeze for CeremonyActivation
impl RefUnwindSafe for CeremonyActivation
impl Send for CeremonyActivation
impl Sync for CeremonyActivation
impl Unpin for CeremonyActivation
impl UnsafeUnpin for CeremonyActivation
impl UnwindSafe for CeremonyActivation
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