Struct RetryRecord
pub struct RetryRecord {
pub attempt: u32,
pub retry_of: TrialId,
}Expand description
What a retried trial records about its origin.
FrozenTrial::retries is the natural
home for this, but the frozen Storage seam has no method that writes
it, so the loop records the lineage as typed state on
an independently keyed named trial-state scope instead. Legacy
Scope::Trial v1 data remains readable.
Read it back with
Study::retry_record.
Fields§
§attempt: u32Which attempt this trial is; 1 for the first retry.
retry_of: TrialIdThe trial whose failure caused this one to be enqueued.
Trait Implementations§
§impl Clone for RetryRecord
impl Clone for RetryRecord
§fn clone(&self) -> RetryRecord
fn clone(&self) -> RetryRecord
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 moreimpl Copy for RetryRecord
§impl Debug for RetryRecord
impl Debug for RetryRecord
§impl<'de> Deserialize<'de> for RetryRecord
impl<'de> Deserialize<'de> for RetryRecord
§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 RetryRecord
§impl PartialEq for RetryRecord
impl PartialEq for RetryRecord
§impl Serialize for RetryRecord
impl Serialize for RetryRecord
impl StructuralPartialEq for RetryRecord
Auto Trait Implementations§
impl Freeze for RetryRecord
impl RefUnwindSafe for RetryRecord
impl Send for RetryRecord
impl Sync for RetryRecord
impl Unpin for RetryRecord
impl UnsafeUnpin for RetryRecord
impl UnwindSafe for RetryRecord
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