pub struct SysinfoServiceBuilder { /* private fields */ }Expand description
Builder for configuring a SysinfoService.
Implementations§
Source§impl SysinfoServiceBuilder
impl SysinfoServiceBuilder
Sourcepub fn cpu_interval(self, interval: Duration) -> Self
pub fn cpu_interval(self, interval: Duration) -> Self
Sets the CPU polling interval.
Sourcepub fn memory_interval(self, interval: Duration) -> Self
pub fn memory_interval(self, interval: Duration) -> Self
Sets the memory polling interval.
Sourcepub fn disk_interval(self, interval: Duration) -> Self
pub fn disk_interval(self, interval: Duration) -> Self
Sets the disk polling interval.
Sourcepub fn network_interval(self, interval: Duration) -> Self
pub fn network_interval(self, interval: Duration) -> Self
Sets the network polling interval.
Sourcepub fn cpu_temp_sensor(self, sensor: impl Into<String>) -> Self
pub fn cpu_temp_sensor(self, sensor: impl Into<String>) -> Self
Sets the CPU temperature sensor label.
Use "auto" for automatic detection, or specify a sensor label
(e.g., "Tctl", "Package id 0", "coretemp").
Sourcepub fn build(self) -> SysinfoService
pub fn build(self) -> SysinfoService
Builds the service and starts background polling tasks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SysinfoServiceBuilder
impl RefUnwindSafe for SysinfoServiceBuilder
impl Send for SysinfoServiceBuilder
impl Sync for SysinfoServiceBuilder
impl Unpin for SysinfoServiceBuilder
impl UnsafeUnpin for SysinfoServiceBuilder
impl UnwindSafe for SysinfoServiceBuilder
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