pub struct CeremonyDefinitionDiff { /* private fields */ }Expand description
Everything that differs between two definitions of one ceremony.
Implementations§
Source§impl CeremonyDefinitionDiff
impl CeremonyDefinitionDiff
Sourcepub fn between(before: &CeremonyDefinition, after: &CeremonyDefinition) -> Self
pub fn between(before: &CeremonyDefinition, after: &CeremonyDefinition) -> Self
Compare two definitions, earlier first.
The two need not be versions of the same ceremony: comparing unrelated documents is a strange thing to ask for but not a wrong one, and refusing it would mean deciding on the caller’s behalf what counts as related.
pub fn changes(&self) -> &[CeremonyDefinitionChange]
pub fn is_identical(&self) -> bool
Sourcepub fn strands_running_sessions(&self) -> bool
pub fn strands_running_sessions(&self) -> bool
Whether any single change could strand a running session. One is enough: a version that can strand a session is not one to adopt mid-flight, however much else about it is harmless.
pub fn strand_count(&self) -> usize
Trait Implementations§
Source§impl Clone for CeremonyDefinitionDiff
impl Clone for CeremonyDefinitionDiff
Source§fn clone(&self) -> CeremonyDefinitionDiff
fn clone(&self) -> CeremonyDefinitionDiff
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CeremonyDefinitionDiff
impl Debug for CeremonyDefinitionDiff
impl Eq for CeremonyDefinitionDiff
Source§impl PartialEq for CeremonyDefinitionDiff
impl PartialEq for CeremonyDefinitionDiff
impl StructuralPartialEq for CeremonyDefinitionDiff
Auto Trait Implementations§
impl Freeze for CeremonyDefinitionDiff
impl RefUnwindSafe for CeremonyDefinitionDiff
impl Send for CeremonyDefinitionDiff
impl Sync for CeremonyDefinitionDiff
impl Unpin for CeremonyDefinitionDiff
impl UnsafeUnpin for CeremonyDefinitionDiff
impl UnwindSafe for CeremonyDefinitionDiff
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