pub struct HardwareSources {
pub host_root: PathBuf,
pub proc_root: PathBuf,
pub serial_file: Option<PathBuf>,
pub in_container: bool,
}Expand description
Where the collector looks.
Fields§
§host_root: PathBufRoot of the host file system (/ on bare metal, /host in a container).
proc_root: PathBufprocfs root (/proc); not namespaced, read directly.
serial_file: Option<PathBuf>Optional provisioned serial-number file.
in_container: boolWhether this process runs inside a container.
Implementations§
Trait Implementations§
Source§impl Clone for HardwareSources
impl Clone for HardwareSources
Source§fn clone(&self) -> HardwareSources
fn clone(&self) -> HardwareSources
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HardwareSources
impl RefUnwindSafe for HardwareSources
impl Send for HardwareSources
impl Sync for HardwareSources
impl Unpin for HardwareSources
impl UnwindSafe for HardwareSources
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more