pub struct HumanSession {
pub active: bool,
pub pins: RolePins,
pub checkpoints: Vec<NamedCheckpoint>,
}Expand description
Per-run human control overlay, merged over config at plan/run time.
Fields§
§active: boolWhen true, pins in this file override config defaults for the run.
pins: RolePins§checkpoints: Vec<NamedCheckpoint>Named review gates registered via /human checkpoint.
Implementations§
Source§impl HumanSession
impl HumanSession
pub fn path(blackboard_root: &Path) -> PathBuf
Sourcepub fn load(blackboard_root: &Path) -> HumanSession
pub fn load(blackboard_root: &Path) -> HumanSession
Load from disk, or default when missing.
pub fn save(&self, blackboard_root: &Path) -> Result<(), RinneError>
Sourcepub fn active_gates(&self) -> &[NamedCheckpoint]
pub fn active_gates(&self) -> &[NamedCheckpoint]
Active named checkpoints (session must be on).
Trait Implementations§
Source§impl Clone for HumanSession
impl Clone for HumanSession
Source§fn clone(&self) -> HumanSession
fn clone(&self) -> HumanSession
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 moreSource§impl Debug for HumanSession
impl Debug for HumanSession
Source§impl Default for HumanSession
impl Default for HumanSession
Source§fn default() -> HumanSession
fn default() -> HumanSession
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HumanSessionwhere
HumanSession: Default,
impl<'de> Deserialize<'de> for HumanSessionwhere
HumanSession: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HumanSession, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HumanSession, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HumanSession
impl Serialize for HumanSession
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for HumanSession
impl Freeze for HumanSession
impl Move for HumanSession
impl RefUnwindSafe for HumanSession
impl Send for HumanSession
impl Sync for HumanSession
impl Unpin for HumanSession
impl UnsafeUnpin for HumanSession
impl UnwindSafe for HumanSession
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