pub struct HealthDataProducer { /* private fields */ }
Expand description
Queries SF and produces health data. User is responsible to implement a consumer to receive the data.
Implementations§
Source§impl HealthDataProducer
impl HealthDataProducer
pub fn new( fc: FabricClient, interval: Duration, sender: UnboundedSender<HealthEntity>, ) -> Self
Sourcepub async fn run_loop(&self, token: BoxedCancelToken)
pub async fn run_loop(&self, token: BoxedCancelToken)
Run a loop to produce health data.
pub fn get_iteration(&self) -> u64
Auto Trait Implementations§
impl !Freeze for HealthDataProducer
impl RefUnwindSafe for HealthDataProducer
impl Send for HealthDataProducer
impl Sync for HealthDataProducer
impl Unpin for HealthDataProducer
impl UnwindSafe for HealthDataProducer
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