SYMBOL INDEX (76 symbols across 16 files) FILE: rust/build.rs function main (line 1) | fn main() { FILE: rust/src/cli.rs type CommandLineArgs (line 5) | pub struct CommandLineArgs { function parse_unkillables (line 34) | fn parse_unkillables(arg: &str) -> Result, String> { FILE: rust/src/daemon.rs function daemonize (line 7) | pub fn daemonize() -> Result<()> { FILE: rust/src/errno.rs function errno (line 17) | pub fn errno() -> i32 { FILE: rust/src/error.rs type Error (line 6) | pub enum Error { method from (line 52) | fn from(err: std::io::Error) -> Self { method from (line 60) | fn from(_: std::num::ParseIntError) -> Self { method from (line 66) | fn from(_: std::num::ParseFloatError) -> Self { method from (line 72) | fn from(error: daemonize::Error) -> Self { method from (line 78) | fn from(error: std::str::Utf8Error) -> Self { method from (line 85) | fn from(error: glob::PatternError) -> Self { type Result (line 49) | pub type Result = std::result::Result; FILE: rust/src/kill.rs function choose_victim (line 13) | pub fn choose_victim( function kill_process (line 92) | pub fn kill_process(pid: i32, signal: i32) -> Result<()> { function kill_process_group (line 111) | pub fn kill_process_group(process: Process) -> Result<()> { function kill_and_wait (line 125) | pub fn kill_and_wait(process: Process) -> Result { FILE: rust/src/linux_version.rs type LinuxVersion (line 4) | pub struct LinuxVersion { method from_str (line 12) | pub fn from_str(release: &str) -> Option { method fmt (line 31) | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { method partial_cmp (line 38) | fn partial_cmp(&self, other: &Self) -> Option { function should_be_able_to_parse_linux_versions (line 53) | fn should_be_able_to_parse_linux_versions() { function should_be_able_to_compare_linux_versions (line 69) | fn should_be_able_to_compare_linux_versions() { FILE: rust/src/main.rs constant LINUX_4_20 (line 23) | const LINUX_4_20: LinuxVersion = LinuxVersion { function main (line 28) | fn main() -> error::Result<()> { FILE: rust/src/memory/mem_info.rs type MemoryInfo (line 11) | pub struct MemoryInfo { method new (line 40) | pub fn new() -> Result { method fmt (line 76) | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { function sys_info (line 21) | fn sys_info() -> Result { FILE: rust/src/memory/mem_lock.rs function _mlockall_wrapper (line 12) | pub fn _mlockall_wrapper(flags: c_int) -> Result<()> { function lock_memory_pages (line 36) | pub fn lock_memory_pages() -> Result<()> { FILE: rust/src/memory/pressure.rs function pressure_some_avg10 (line 19) | pub fn pressure_some_avg10(buf: &mut [u8]) -> Result { FILE: rust/src/monitor.rs type MemoryStatus (line 10) | enum MemoryStatus { type Monitor (line 15) | pub struct Monitor { method sleep_time_ms (line 29) | pub fn sleep_time_ms(&self) -> Duration { method new (line 62) | pub fn new(proc_buf: [u8; 50], mut buf: [u8; 100], args: CommandLineAr... method memory_is_low (line 79) | fn memory_is_low(&self) -> bool { method get_victim (line 84) | fn get_victim(&mut self) -> Result { method update_memory_stats (line 88) | fn update_memory_stats(&mut self) -> Result<()> { method free_up_memory (line 99) | fn free_up_memory(&mut self) -> Result<()> { method poll (line 120) | pub fn poll(&mut self) -> Result<()> { FILE: rust/src/process.rs type Process (line 12) | pub struct Process { method from_pid (line 18) | pub fn from_pid(pid: u32, buf: &mut [u8]) -> Result { method this (line 27) | pub fn this(buf: &mut [u8]) -> Result { method is_alive_from_pid (line 36) | pub fn is_alive_from_pid(pid: u32) -> bool { method is_alive (line 43) | pub fn is_alive(&self) -> bool { method comm (line 47) | pub fn comm<'a>(&self, buf: &'a mut [u8]) -> Result<&'a str> { method oom_score_from_pid (line 58) | pub fn oom_score_from_pid(pid: u32, buf: &mut [u8]) -> Result { method vm_rss_kib (line 75) | pub fn vm_rss_kib(&self, buf: &mut [u8]) -> Result { method is_unkillable (line 95) | pub fn is_unkillable(&self, buf: &mut [u8], patterns: &[glob::Pattern]... method oom_score_adj (line 110) | pub fn oom_score_adj(&self, buf: &mut [u8]) -> Result { function this (line 135) | fn this() -> ([u8; 100], crate::process::Process) { function comm (line 141) | fn comm() { function oom_score (line 155) | fn oom_score() { function pid (line 164) | fn pid() { FILE: rust/src/uname.rs type Uname (line 8) | pub struct Uname { method new (line 13) | pub fn new() -> Result { method print_info (line 28) | pub fn print_info(&self) -> Result<()> { method parse_version (line 49) | pub fn parse_version(&self) -> Result { FILE: rust/src/utils.rs function effective_user_id (line 16) | fn effective_user_id() -> u32 { function get_process_group (line 24) | pub fn get_process_group(pid: i32) -> Result { function running_as_sudo (line 39) | pub fn running_as_sudo() -> bool { function page_size (line 44) | pub fn page_size() -> Result { function get_username (line 59) | pub fn get_username() -> Option { function bytes_until_first_nil (line 80) | fn bytes_until_first_nil(buf: &[u8]) -> &[u8] { function str_from_bytes (line 87) | pub fn str_from_bytes(buf: &[u8]) -> Result<&str> { function path_from_bytes (line 93) | fn path_from_bytes(buf: &[u8]) -> &Path { function file_from_buffer (line 100) | pub fn file_from_buffer(buf: &[u8]) -> Result { function bytes_to_megabytes (line 106) | pub fn bytes_to_megabytes(bytes: impl Into, mem_unit: impl Into