GetFileInfo

Trait GetFileInfo 

Source
pub trait GetFileInfo {
    // Required methods
    fn get_pid_info(&self, path: String) -> HashMap<String, String>;
    fn get_mem_info(&self, path: String) -> Vec<String>;
    fn get_port_info(&self, port: &str) -> Option<Vec<String>>;
}
Expand description

Trait defining file information retrieval methods

Required Methods§

Source

fn get_pid_info(&self, path: String) -> HashMap<String, String>

Get process information from a path

Source

fn get_mem_info(&self, path: String) -> Vec<String>

Get memory-mapped file information

Source

fn get_port_info(&self, port: &str) -> Option<Vec<String>>

Get information about a socket port

Implementors§