pub struct Job { /* private fields */ }Implementations§
Source§impl Job
impl Job
pub fn detail(self, detail: impl Into<String>) -> Self
pub fn device(self, device: impl Into<String>) -> Self
pub fn out(self, path: impl AsRef<Path>) -> Self
pub fn stage(&self, name: &str, total: Option<u64>, unit: &str)
pub fn stages(&self, names: &[&str])
pub fn stage_note(&self, note: impl Into<String>)
pub fn progress(&self, done: u64)
pub fn pgpu(&self, pid: Option<u32>)
pub fn rate(&self, rate: Option<f64>)
pub fn finish(&self, code: i32)
pub fn fail(&self, code: i32, error: impl Into<String>)
pub fn child_env(&self) -> Vec<(&'static str, String)>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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