Enum Command
pub enum Command {
ResumeTrial(TrialId),
}Expand description
Something a scheduler asks the study loop to do.
Kept intentionally small: a command must be something the M1 loop could honestly execute or honestly ignore. Population operations grow this enum in M4, when there is a scheduler that emits them.
Variants§
Trait Implementations§
§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
§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 Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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