pub struct Workspace { /* private fields */ }Implementations§
Source§impl Workspace
impl Workspace
pub fn contradiction_report(&self) -> Result<EntropyReport>
Source§impl Workspace
impl Workspace
pub fn write_prism_signal(&self, signal: &PrismSignal) -> Result<()>
pub fn load_prism_signals(&self) -> Result<Vec<PrismSignal>>
pub fn scan_prism_conflicts( &self, current_signal: &PrismSignal, ) -> Result<Vec<PrismConflict>>
pub fn scan_prism_hard_locks( &self, active_atoms: &[LoreAtom], ) -> Result<Vec<HardLockViolation>>
pub fn count_stale_prism_signals(&self, stale_ttl_seconds: u64) -> Result<usize>
pub fn prune_stale_prism_signals(&self, stale_ttl_seconds: u64) -> Result<usize>
Source§impl Workspace
impl Workspace
pub fn write_accepted_atom( &self, atom: &LoreAtom, source_commit: Option<&str>, ) -> Result<()>
pub fn load_accepted_atoms(&self) -> Result<Vec<AcceptedLoreRecord>>
Source§impl Workspace
impl Workspace
pub fn init(path: impl AsRef<Path>) -> Result<Self>
pub fn discover(path: impl AsRef<Path>) -> Result<Self>
pub fn root(&self) -> &Path
pub fn load_state(&self) -> Result<WorkspaceState>
pub fn record_atom(&self, atom: LoreAtom) -> Result<()>
pub fn write_checkpoint(&self, message: Option<String>) -> Result<Checkpoint>
pub fn entropy_report(&self) -> Result<EntropyReport>
pub fn sanitize_report(&self) -> Result<Vec<SanitizationIssue>>
pub fn validation_report(&self) -> Result<Vec<ValidationIssue>>
pub fn set_state(&self, state: &WorkspaceState) -> Result<()>
pub fn preview_state_transition( &self, atom_id: &str, target_state: AtomState, ) -> Result<StateTransitionPreview>
pub fn transition_atom_state( &self, atom_id: &str, target_state: AtomState, reason: impl Into<String>, actor: Option<String>, ) -> Result<LoreAtom>
pub fn accept_active_atoms(&self, source_commit: Option<&str>) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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