pub struct Mission<'s> {
pub location_name: String,
pub concrete_job_ref: ConcreteJobRef,
pub execution_directory: PathBuf,
pub package_directory: PathBuf,
pub workspace_directory: Option<PathBuf>,
pub job: Job,
pub paths_to_watch: Vec<PathBuf>,
pub settings: &'s Settings,
}Expand description
the description of the mission of bacon after analysis of the args, env, and surroundings
Fields§
§location_name: String§concrete_job_ref: ConcreteJobRef§execution_directory: PathBuf§package_directory: PathBuf§workspace_directory: Option<PathBuf>§job: Job§paths_to_watch: Vec<PathBuf>§settings: &'s SettingsImplementations§
Source§impl Mission<'_>
impl Mission<'_>
Sourcepub fn ignorer(&self) -> IgnorerSet
pub fn ignorer(&self) -> IgnorerSet
Return an Ignorer according to the job’s settings
pub fn is_success(&self, report: &Report) -> bool
pub fn make_absolute(&self, path: PathBuf) -> PathBuf
Sourcepub fn get_command(&self) -> Result<CommandBuilder>
pub fn get_command(&self) -> Result<CommandBuilder>
build (and doesn’t call) the external cargo command
pub fn kill_command(&self) -> Option<Vec<String>>
Sourcepub fn need_stdout(&self) -> bool
pub fn need_stdout(&self) -> bool
whether we need stdout and not just stderr
pub fn analyzer(&self) -> AnalyzerRef
pub fn ignored_lines_patterns(&self) -> Option<&Vec<LinePattern>>
pub fn sound_player_if_needed(&self) -> Option<SoundPlayer>
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Mission<'s>
impl<'s> RefUnwindSafe for Mission<'s>
impl<'s> Send for Mission<'s>
impl<'s> Sync for Mission<'s>
impl<'s> Unpin for Mission<'s>
impl<'s> UnwindSafe for Mission<'s>
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