#[non_exhaustive]pub struct AttemptSummary {
pub attempt_id: AttemptId,
pub attempt_index: AttemptIndex,
}Expand description
Currently-active attempt summary inside an ExecutionSnapshot.
#[non_exhaustive].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attempt_id: AttemptId§attempt_index: AttemptIndexImplementations§
Source§impl AttemptSummary
impl AttemptSummary
Sourcepub fn new(attempt_id: AttemptId, attempt_index: AttemptIndex) -> Self
pub fn new(attempt_id: AttemptId, attempt_index: AttemptIndex) -> Self
Construct an AttemptSummary. See ExecutionSnapshot::new
for the rationale — #[non_exhaustive] blocks cross-crate
struct-literal construction.
Trait Implementations§
Source§impl Clone for AttemptSummary
impl Clone for AttemptSummary
Source§fn clone(&self) -> AttemptSummary
fn clone(&self) -> AttemptSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 AttemptSummary
impl Debug for AttemptSummary
Source§impl PartialEq for AttemptSummary
impl PartialEq for AttemptSummary
impl Eq for AttemptSummary
impl StructuralPartialEq for AttemptSummary
Auto Trait Implementations§
impl Freeze for AttemptSummary
impl RefUnwindSafe for AttemptSummary
impl Send for AttemptSummary
impl Sync for AttemptSummary
impl Unpin for AttemptSummary
impl UnsafeUnpin for AttemptSummary
impl UnwindSafe for AttemptSummary
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