Open papertigers opened 5 years ago
what is this
Have a look at https://doc.rust-lang.org/1.0.0/style/ownership/builders.html
Basically instead of defining the module, instance, name, and class when calling new(...)
, it would allow for let reader = KstatReader::new().module("vfs_stat").instance(1)
Investigate using a builder pattern instead of all the optionals in the current api.
Reader.module(foo) .inst(1) .read()