pub struct ReportMaker { /* private fields */ }Expand description
Dedicated to a mission, the report maker receives the command output lines and builds a report at end, complete with starts.
Implementations§
Source§impl ReportMaker
impl ReportMaker
pub fn new(mission: &Mission<'_>) -> Self
pub fn start(&mut self, mission: &Mission<'_>)
pub fn receive_line( &mut self, cmd_line: CommandOutputLine, command_output: &mut CommandOutput, )
pub fn build_report(&mut self) -> Result<Report>
pub fn build_result( &mut self, output: CommandOutput, exit_status: ExitStatus, ) -> Result<CommandResult>
Auto Trait Implementations§
impl Freeze for ReportMaker
impl !RefUnwindSafe for ReportMaker
impl !Send for ReportMaker
impl !Sync for ReportMaker
impl Unpin for ReportMaker
impl !UnwindSafe for ReportMaker
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