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>
pub fn pending(&self) -> Result<Vec<QueuedReview>, 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.
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