pub struct Repr<'a> { /* private fields */ }Expand description
Formatted representation of a syscall invocation for printing.
Repr holds the syscall name, a comma-separated argument string and the
formatted return value. Construct one with Repr::build using the
traced process registers and the Entries metadata.
Implementations§
Source§impl<'a> Repr<'a>
impl<'a> Repr<'a>
Sourcepub fn build(pid: Pid, infos: &'a Entries) -> Result<Self>
pub fn build(pid: Pid, infos: &'a Entries) -> Result<Self>
Builds a Repr struct from the given process ID (pid) and a reference to Entries.
§Arguments
pid- The process ID for which to build theReprstruct.infos- A reference toEntriescontaining the syscall information.
§Errors
Returns an Err if ptrace::getregs() or ptrace::read() fails.
§Returns
Returns a Result containing the constructed Repr struct on success.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Repr<'a>
impl<'a> RefUnwindSafe for Repr<'a>
impl<'a> Send for Repr<'a>
impl<'a> Sync for Repr<'a>
impl<'a> Unpin for Repr<'a>
impl<'a> UnsafeUnpin for Repr<'a>
impl<'a> UnwindSafe for Repr<'a>
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