Enum FencedMutation
pub enum FencedMutation {
WriteParams(Vec<ParamWrite>),
Report {
step: u64,
values: Vec<f64>,
},
SetUserAttr {
key: String,
value: Value,
},
PutState {
scope: Scope,
blob: StateBlob,
},
PutConstraints {
scope: Scope,
blob: StateBlob,
arity: u32,
},
Pause,
PauseWithState {
sampler_state: Option<StateBlob>,
scheduler_state: Option<StateBlob>,
},
}Expand description
One ownership-fenced mutation.
Variants§
WriteParams(Vec<ParamWrite>)
Write sampled parameters and their distributions.
Report
Append or replace an intermediate report.
Fields
SetUserAttr
Insert or replace one user-owned JSON attribute on the live trial.
Fields
PutState
Replace one state blob belonging to this trial.
PutConstraints
Validate the study’s exact constraint arity and replace this trial’s constraint blob in the same atomic operation.
Fields
Pause
Pause the running trial for a later epoch-advancing reclaim.
PauseWithState
Pause the running trial and replace both study seam states atomically.
Trait Implementations§
§impl Clone for FencedMutation
impl Clone for FencedMutation
§fn clone(&self) -> FencedMutation
fn clone(&self) -> FencedMutation
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 FencedMutation
impl Debug for FencedMutation
§impl PartialEq for FencedMutation
impl PartialEq for FencedMutation
impl StructuralPartialEq for FencedMutation
Auto Trait Implementations§
impl Freeze for FencedMutation
impl RefUnwindSafe for FencedMutation
impl Send for FencedMutation
impl Sync for FencedMutation
impl Unpin for FencedMutation
impl UnsafeUnpin for FencedMutation
impl UnwindSafe for FencedMutation
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