pub struct ReviewQueue { /* private fields */ }Implementations§
Source§impl ReviewQueue
impl ReviewQueue
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn path(&self) -> PathBuf
pub fn enqueue( &self, commit_sha: impl Into<String>, ) -> Result<QueuedReview, ReviewerError>
Sourcepub fn enqueue_petition(
&self,
fix_sha: impl Into<String>,
original_sha: impl Into<String>,
) -> Result<QueuedReview, ReviewerError>
pub fn enqueue_petition( &self, fix_sha: impl Into<String>, original_sha: impl Into<String>, ) -> Result<QueuedReview, ReviewerError>
Enqueue a petition re-review: fix_sha is reviewed with the petition
prompt, and its verdict transitions the original rejection
(original_sha). This is the queue leg of truth-mirror resolve --fixed-by — without it the watcher would never build a petition job.
pub fn pending(&self) -> Result<Vec<QueuedReview>, ReviewerError>
pub fn summary(&self) -> Result<ReviewQueueSummary, ReviewerError>
Sourcepub fn remove_sha(&self, sha: &str) -> Result<(), ReviewerError>
pub fn remove_sha(&self, sha: &str) -> Result<(), ReviewerError>
Drop every queued item for sha, preserving any items appended for other
commits. Called after a commit is reviewed so a drain never repeats work.
Sourcepub fn remove_item(
&self,
sha: &str,
petition_for: Option<&str>,
) -> Result<(), ReviewerError>
pub fn remove_item( &self, sha: &str, petition_for: Option<&str>, ) -> Result<(), ReviewerError>
Drop the queued item matching BOTH the commit SHA and the petition identity, preserving sibling rows for the same SHA (a fix commit’s own review and a petition review of it are distinct queue items).
pub fn remove_run_id(&self, run_id: &str) -> Result<(), ReviewerError>
Trait Implementations§
Source§impl Clone for ReviewQueue
impl Clone for ReviewQueue
Source§fn clone(&self) -> ReviewQueue
fn clone(&self) -> ReviewQueue
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 moreAuto Trait Implementations§
impl Freeze for ReviewQueue
impl RefUnwindSafe for ReviewQueue
impl Send for ReviewQueue
impl Sync for ReviewQueue
impl Unpin for ReviewQueue
impl UnsafeUnpin for ReviewQueue
impl UnwindSafe for ReviewQueue
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