Struct ForkOrigin
#[non_exhaustive]pub struct ForkOrigin {
pub parent: TrialId,
pub fork_step: Option<u64>,
pub restart: Option<Restart>,
}Expand description
A trial’s fork provenance: the version-1 atune.lineage record.
Written by the study loop when a fork or restart child starts, atomically with the claim that makes it running, and never changed afterwards.
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.parent: TrialIdThe donor trial: the fork’s parent, or the trial a restart copied its configuration from.
fork_step: Option<u64>The step of the checkpoint the child started from, or None when it
started without one (a fresh restart, or a donor that had recorded no
checkpoint yet).
restart: Option<Restart>The restart mode and seed, or None for a plain fork.
Implementations§
Trait Implementations§
§impl Clone for ForkOrigin
impl Clone for ForkOrigin
§fn clone(&self) -> ForkOrigin
fn clone(&self) -> ForkOrigin
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 ForkOrigin
§impl Debug for ForkOrigin
impl Debug for ForkOrigin
§impl<'de> Deserialize<'de> for ForkOrigin
impl<'de> Deserialize<'de> for ForkOrigin
§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 PartialEq for ForkOrigin
impl PartialEq for ForkOrigin
§impl Serialize for ForkOrigin
impl Serialize for ForkOrigin
impl StructuralPartialEq for ForkOrigin
Auto Trait Implementations§
impl Freeze for ForkOrigin
impl RefUnwindSafe for ForkOrigin
impl Send for ForkOrigin
impl Sync for ForkOrigin
impl Unpin for ForkOrigin
impl UnsafeUnpin for ForkOrigin
impl UnwindSafe for ForkOrigin
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