1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
// // Sysinfo // // Copyright (c) 2015 Guillaume Gomez // use ProcessorExt; /// Dummy struct that represents a processor. pub struct Processor {} impl Processor { pub(crate) fn new() -> Processor { Processor {} } } impl ProcessorExt for Processor { fn get_cpu_usage(&self) -> f32 { 0.0 } fn get_name(&self) -> &str { "" } fn get_frequency(&self) -> u64 { 0 } fn get_vendor_id(&self) -> &str { "" } fn get_brand(&self) -> &str { "" } }