pub struct Engine { /* private fields */ }Expand description
Run CI for a project once.
Implementations§
Source§impl Engine
impl Engine
Sourcepub fn new() -> Result<Self, EngineError>
pub fn new() -> Result<Self, EngineError>
Create a new engine and prepare for actually running CI. This may fail, for various reasons, such as the configuration file not existing. The caller should handle the error in some suitable way, such as report that to its stderr, and exit non-zero.
Sourcepub fn run(&mut self) -> Result<bool, EngineError>
pub fn run(&mut self) -> Result<bool, EngineError>
Set up and run CI on a project once: read the trigger request from stdin, write responses to stdout. Update node admin log with any problems that aren’t inherent in the git repository (those go into the run log).
Sourcepub fn report(&mut self) -> Result<(), EngineError>
pub fn report(&mut self) -> Result<(), EngineError>
Report results to caller (via stdout) and to users (via report on web page).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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