pub trait JobUnit:
Debug
+ Any
+ Sized
+ Copy
+ Hash
+ Eq
+ Send {
// Required methods
fn deps(&self) -> Vec<Self>;
fn cmd(&self) -> Option<String>;
fn out_file(&self) -> PathBuf;
fn log_file(&self) -> Option<PathBuf>;
fn name(&self) -> &'static str;
// Provided method
fn nice(&self) -> u16 { ... }
}
Expand description
A trait that must be implemented by struct representing job units.
A single struct is used to represent all the possible job units and their dependencies, so most of the checks are performed at run-time.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.