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<ProducerEvent>, ) -> Self
Sourcepub async fn run_loop(&self, token: BoxedCancelToken)
pub async fn run_loop(&self, token: BoxedCancelToken)
Run both the cluster/node loop and the application loop concurrently.
The two loops are independent: a slow application traversal will not delay cluster/node reporting, and vice versa.
Sourcepub async fn run_cluster_node_loop(&self, token: BoxedCancelToken)
pub async fn run_cluster_node_loop(&self, token: BoxedCancelToken)
Run a loop to produce cluster and node health data.
Sourcepub async fn run_application_loop(&self, token: BoxedCancelToken)
pub async fn run_application_loop(&self, token: BoxedCancelToken)
Run a loop to produce application health data.
Auto Trait Implementations§
impl Freeze for HealthDataProducer
impl RefUnwindSafe for HealthDataProducer
impl Send for HealthDataProducer
impl Sync for HealthDataProducer
impl Unpin for HealthDataProducer
impl UnsafeUnpin 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