fn new(
        id: u16,
        domains: Vec<Domain>,
        attributes: Vec<Vec<HashMap<String, String>>>,
        counter_uj_path: String,
        buffer_max_kbytes: u16,
    ) -> CPUSocket {
        CPUSocket {
            id,
            domains,
            attributes,
            counter_uj_path,
            record_buffer: vec![], // buffer has to be empty first
            buffer_max_kbytes,
            cpu_cores: vec![], // cores are instantiated on a later step
            stat_buffer: vec![],
        }
    }
/// Creates and returns a CPUSocket instance with an empty buffer and no CPUCore owned yet.
Creates and returns a CPUSocket instance with an empty buffer and no CPUCore owned yet.
Creates and returns a CPUSocket instance with an empty buffer and no CPUCore owned yet .
fn new(
        id: u16,
        domains: Vec<Domain>,
        attributes: Vec<Vec<HashMap<String, String>>>,
        counter_uj_path: String,
        buffer_max_kbytes: u16,
    ) -> CPUSocket {
        CPUSocket {
            id,
            domains,
            attributes,
            counter_uj_path,
            record_buffer: vec![], // buffer has to be empty first
            buffer_max_kbytes,
            cpu_cores: vec![], // cores are instantiated on a later step
            stat_buffer: vec![],
        }
    }
fn new ( id : u16 , domains : Vec < Domain > , attributes : Vec < Vec < HashMap < String , String > > > , counter_uj_path : String , buffer_max_kbytes : u16 , ) -> CPUSocket { CPUSocket { id , domains , attributes , counter_uj_path , record_buffer : vec ! [ ] , // buffer has to be empty first buffer_max_kbytes , cpu_cores : vec ! [ ] , // cores are instantiated on a later step stat_buffer : vec ! [ ] , } }
Creates and returns a CPUSocket instance with an empty buffer and no CPUCore owned yet.
Creates and returns a CPUSocket instance with an empty buffer and no CPUCore owned yet .
id
u16
domains
Vec<Domain>
attributes
Vec<Vec<HashMap<String, String>>>
counter_uj_path
String
buffer_max_kbytes
u16
id
u16
domains
Vec<Domain>
attributes
Vec<Vec<HashMap<String, String>>>
counter_uj_path
String
buffer_max_kbytes
u16