pub struct BlameFrontierGroup {
pub target: BlameTarget,
pub records: Vec<BlameFrontierRecord>,
}Expand description
Canonical LIFO frontier group. Replay of the same group is deterministic.
target is the prepared file this group may attribute. A record bound to
another job’s target is InvalidFrontier, not a silent swap.
Fields§
§target: BlameTarget§records: Vec<BlameFrontierRecord>Implementations§
Source§impl BlameFrontierGroup
impl BlameFrontierGroup
pub fn is_empty(&self) -> bool
pub fn pop(&mut self) -> Option<BlameFrontierRecord>
pub fn push(&mut self, record: BlameFrontierRecord)
Sourcepub fn require_target(
&self,
expected: &BlameTarget,
) -> Result<(), BlameSliceError>
pub fn require_target( &self, expected: &BlameTarget, ) -> Result<(), BlameSliceError>
Fail closed when this group is replayed against a different prepare.
Sourcepub fn require_path(&self, path: &Path) -> Result<(), BlameSliceError>
pub fn require_path(&self, path: &Path) -> Result<(), BlameSliceError>
Fail closed when an advance path is not this group’s prepared path.
pub fn require_consistent_target(&self) -> Result<(), BlameSliceError>
Trait Implementations§
Source§impl Clone for BlameFrontierGroup
impl Clone for BlameFrontierGroup
Source§fn clone(&self) -> BlameFrontierGroup
fn clone(&self) -> BlameFrontierGroup
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 BlameFrontierGroup
impl Debug for BlameFrontierGroup
Source§impl<'de> Deserialize<'de> for BlameFrontierGroup
impl<'de> Deserialize<'de> for BlameFrontierGroup
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 BlameFrontierGroup
Source§impl PartialEq for BlameFrontierGroup
impl PartialEq for BlameFrontierGroup
Source§impl Serialize for BlameFrontierGroup
impl Serialize for BlameFrontierGroup
impl StructuralPartialEq for BlameFrontierGroup
Auto Trait Implementations§
impl Freeze for BlameFrontierGroup
impl RefUnwindSafe for BlameFrontierGroup
impl Send for BlameFrontierGroup
impl Sync for BlameFrontierGroup
impl Unpin for BlameFrontierGroup
impl UnsafeUnpin for BlameFrontierGroup
impl UnwindSafe for BlameFrontierGroup
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