pub struct Trace { /* private fields */ }Implementations§
Source§impl Trace
impl Trace
pub fn new(pid: pid_t, cwd: PathBuf, cmd: Vec<String>) -> Trace
pub fn get_pid(&self) -> pid_t
pub fn get_cwd(&self) -> &Path
pub fn get_cmd(&self) -> &[String]
Sourcepub fn create(args: &Vec<String>) -> Result<Trace, Error>
pub fn create(args: &Vec<String>) -> Result<Trace, Error>
Create a Trace report object from the given arguments. Capture the current process id and working directory.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trace
impl<'de> Deserialize<'de> for Trace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Trace
impl RefUnwindSafe for Trace
impl Send for Trace
impl Sync for Trace
impl Unpin for Trace
impl UnwindSafe for Trace
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