pub struct FsReviewStore { /* private fields */ }Expand description
One review’s sidecar directory (ADR 0013).
Implementations§
Source§impl FsReviewStore
impl FsReviewStore
Sourcepub fn for_review<L: RepoLayout>(
layout: &L,
id: &str,
) -> Result<Self, EngineError>
pub fn for_review<L: RepoLayout>( layout: &L, id: &str, ) -> Result<Self, EngineError>
Open the review with this id.
The id is review_identity::resolve’s answer, not this adapter’s: which
review a spelling opens is domain policy, and it can be another
spelling’s review.
Sourcepub fn at(dir: PathBuf) -> Result<Self, EngineError>
pub fn at(dir: PathBuf) -> Result<Self, EngineError>
Test/tooling entry: open at an explicit directory.
Trait Implementations§
Source§impl ReviewStore for FsReviewStore
impl ReviewStore for FsReviewStore
Source§fn save_plan(&self, hash: &str, json: &str) -> Result<(), EngineError>
fn save_plan(&self, hash: &str, json: &str) -> Result<(), EngineError>
Persist a plan document under its content hash and point
current at
it. Idempotent: re-saving the same hash must not rewrite the body. Read morefn load_state(&self) -> Result<ReviewState, EngineError>
fn save_state(&self, state: &ReviewState) -> Result<(), EngineError>
fn load_findings(&self) -> Result<Vec<Finding>, EngineError>
Source§fn save_findings(&self, findings: &[Finding]) -> Result<(), EngineError>
fn save_findings(&self, findings: &[Finding]) -> Result<(), EngineError>
Rewrites the whole set (status changes, deletions, re-anchor results).
The set is small; simplicity beats cleverness.
Source§fn load_threads(&self) -> Result<Vec<RemoteThread>, EngineError>
fn load_threads(&self) -> Result<Vec<RemoteThread>, EngineError>
The forge’s threads as last fetched. A cache: every fetch replaces it,
and a failed fetch leaves it as it was (ADR 0029).
fn save_threads(&self, threads: &[RemoteThread]) -> Result<(), EngineError>
Auto Trait Implementations§
impl Freeze for FsReviewStore
impl RefUnwindSafe for FsReviewStore
impl Send for FsReviewStore
impl Sync for FsReviewStore
impl Unpin for FsReviewStore
impl UnsafeUnpin for FsReviewStore
impl UnwindSafe for FsReviewStore
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