pub struct ServiceDeviceStats {
pub device_id: String,
pub alias: Option<String>,
pub poll_interval: u64,
pub polling: bool,
pub success_count: u64,
pub failure_count: u64,
pub last_poll_at: Option<OffsetDateTime>,
pub last_error: Option<String>,
}Expand description
Statistics for a device being monitored by the service.
Fields§
§device_id: StringDevice identifier.
alias: Option<String>Device alias/name.
poll_interval: u64Poll interval in seconds.
polling: boolWhether the device is currently being polled.
success_count: u64Number of successful polls.
failure_count: u64Number of failed polls.
last_poll_at: Option<OffsetDateTime>Last poll time.
last_error: Option<String>Last error message.
Trait Implementations§
Source§impl Clone for ServiceDeviceStats
impl Clone for ServiceDeviceStats
Source§fn clone(&self) -> ServiceDeviceStats
fn clone(&self) -> ServiceDeviceStats
Returns a duplicate 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 ServiceDeviceStats
impl RefUnwindSafe for ServiceDeviceStats
impl Send for ServiceDeviceStats
impl Sync for ServiceDeviceStats
impl Unpin for ServiceDeviceStats
impl UnwindSafe for ServiceDeviceStats
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