Enum Scope
pub enum Scope {
Study(StudyId),
Sampler(StudyId),
Scheduler(StudyId),
Trial(TrialId),
Named(StudyId, String),
}Expand description
What a StateBlob belongs to.
Scoping is what keeps two samplers, a scheduler and user code from overwriting each other’s state without inventing key-prefix conventions.
Variants§
Study(StudyId)
User-facing state attached to the study.
Sampler(StudyId)
The study’s sampler state (TPE’s history summaries, CMA-ES’s covariance, …).
Scheduler(StudyId)
The study’s scheduler state (ASHA rung tables, PBT populations, …).
Trial(TrialId)
State attached to a single trial (checkpoint references, artifacts).
Named(StudyId, String)
A caller-named slot inside a study.
Trait Implementations§
§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
§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 Scope
§impl Ord for Scope
impl Ord for Scope
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialOrd for Scope
impl PartialOrd for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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