Skip to main content

WorkHandlers

Trait WorkHandlers 

Source
pub trait WorkHandlers {
    // Required methods
    fn push(&self, items: &[WorkItem]) -> Verdict;
    fn maintenance(&self, item: &WorkItem) -> Verdict;
    fn review(&self, item: &WorkItem) -> Verdict;
}
Expand description

What runs each kind of work.

Required Methods§

Source

fn push(&self, items: &[WorkItem]) -> Verdict

Push the branch of these items, which share a repository and a branch; the last is the newest.

Source

fn maintenance(&self, item: &WorkItem) -> Verdict

Run the repository’s automatic upkeep.

Source

fn review(&self, item: &WorkItem) -> Verdict

Review one landed commit into the repository’s shadow log.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl WorkHandlers for GitHandlers

Trait implementation for the real Git.