Crate callee

source ·
Expand description

callee is a Rust library that provides functionality to retrieve information about the calling process.

This library allows you to access various attributes of the calling process, such as the command-line arguments and process name. It provides a simple interface to retrieve and work with this process metadata.

Usage

To use callee, add it as a dependency in your Cargo.toml:

[dependencies]
callee = "0"

Then, you can initialize a Callee instance to retrieve information about the calling process:

use callee::Callee;

let callee = Callee::init().unwrap();
println!("Callee: {:?}", callee);
println!("Comm: {}", callee.comm());
println!("Cmdline: {}", callee.cmdline());

Features

  • Retrieve the command-line arguments and process name of the calling process.
  • Simplify process introspection and monitoring in Rust applications.
  • Works on Unix-like systems with access to the /proc file system.

We hope callee simplifies your process introspection tasks and provides valuable insights into the calling process. Feel free to explore the documentation and examples for more information.

Your feedback and contributions are welcome!

Structs

  • Represents information about the calling process.

Enums