pub struct FaultSnapshot {
pub calls: Vec<CallRecord>,
pub releases: Vec<ReleaseRecord>,
pub resources: Vec<ResourceRecord>,
pub pending_faults: Vec<FaultStep>,
pub violations: Vec<OwnershipViolation>,
}Expand description
Point-in-time copy of fault and ownership state.
Fields§
§calls: Vec<CallRecord>§releases: Vec<ReleaseRecord>§resources: Vec<ResourceRecord>§pending_faults: Vec<FaultStep>§violations: Vec<OwnershipViolation>Implementations§
Source§impl FaultSnapshot
impl FaultSnapshot
pub fn resources_in(&self, state: ResourceState) -> ResourceTally
pub fn is_clean(&self) -> bool
Trait Implementations§
Source§impl Clone for FaultSnapshot
impl Clone for FaultSnapshot
Source§fn clone(&self) -> FaultSnapshot
fn clone(&self) -> FaultSnapshot
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 FaultSnapshot
impl Debug for FaultSnapshot
impl Eq for FaultSnapshot
Source§impl PartialEq for FaultSnapshot
impl PartialEq for FaultSnapshot
Source§fn eq(&self, other: &FaultSnapshot) -> bool
fn eq(&self, other: &FaultSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FaultSnapshot
Auto Trait Implementations§
impl Freeze for FaultSnapshot
impl RefUnwindSafe for FaultSnapshot
impl Send for FaultSnapshot
impl Sync for FaultSnapshot
impl Unpin for FaultSnapshot
impl UnsafeUnpin for FaultSnapshot
impl UnwindSafe for FaultSnapshot
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