Struct RecipeEvent
#[non_exhaustive]pub struct RecipeEvent {
pub kind: String,
pub parent: u64,
pub fork_step: Option<u64>,
pub mode: Option<RestartMode>,
pub seed: Option<u64>,
}Expand description
The fork or restart at the start of a RecipeSegment.
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.kind: String"fork" or "restart".
parent: u64The per-study number of the donor.
fork_step: Option<u64>The step of the checkpoint the trial started from, if any.
mode: Option<RestartMode>The restart mode, for a restart.
seed: Option<u64>The restart seed, for a restart.
Trait Implementations§
§impl Clone for RecipeEvent
impl Clone for RecipeEvent
§fn clone(&self) -> RecipeEvent
fn clone(&self) -> RecipeEvent
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 more§impl Debug for RecipeEvent
impl Debug for RecipeEvent
§impl<'de> Deserialize<'de> for RecipeEvent
impl<'de> Deserialize<'de> for RecipeEvent
§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 RecipeEvent
impl PartialEq for RecipeEvent
§impl Serialize for RecipeEvent
impl Serialize for RecipeEvent
impl StructuralPartialEq for RecipeEvent
Auto Trait Implementations§
impl Freeze for RecipeEvent
impl RefUnwindSafe for RecipeEvent
impl Send for RecipeEvent
impl Sync for RecipeEvent
impl Unpin for RecipeEvent
impl UnsafeUnpin for RecipeEvent
impl UnwindSafe for RecipeEvent
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