pub struct PendingCheck { /* private fields */ }Expand description
A check up to its diff hash: the base, the changed files, and the hash of their content, with
no scan of the base. A caller that remembers the hash of an earlier check can drop a repeat
before PendingCheck::run pays for the scan and the report.
Implementations§
Source§impl PendingCheck
impl PendingCheck
Sourcepub fn diff_hash(&self) -> &str
pub fn diff_hash(&self) -> &str
The hash of the base commit and of the content of each changed file.
Sourcepub fn run(
self,
workspace: &Workspace,
db_path: &Path,
conn: &Connection,
) -> Result<EditCheck, EditCheckError>
pub fn run( self, workspace: &Workspace, db_path: &Path, conn: &Connection, ) -> Result<EditCheck, EditCheckError>
Runs the rest of the check. workspace and conn are those that prepared it.
Auto Trait Implementations§
impl Freeze for PendingCheck
impl RefUnwindSafe for PendingCheck
impl Send for PendingCheck
impl Sync for PendingCheck
impl Unpin for PendingCheck
impl UnsafeUnpin for PendingCheck
impl UnwindSafe for PendingCheck
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more