pub struct ReportQueueManager { /* private fields */ }Expand description
Report queue manager
Implementations§
Source§impl ReportQueueManager
impl ReportQueueManager
pub fn new() -> Self
Sourcepub fn enqueue_report(&mut self, report: QueuedReport)
pub fn enqueue_report(&mut self, report: QueuedReport)
Enqueue a pending report.
Sourcepub fn start_next_report(&mut self) -> Option<QueuedReport>
pub fn start_next_report(&mut self) -> Option<QueuedReport>
Dequeue the next pending report and mark it as running.
Sourcepub fn complete_report(&mut self, report: CompletedReport)
pub fn complete_report(&mut self, report: CompletedReport)
Mark a running report as completed.
Sourcepub fn pending_count(&self) -> usize
pub fn pending_count(&self) -> usize
Number of pending reports.
Sourcepub fn running_count(&self) -> usize
pub fn running_count(&self) -> usize
Number of running reports.
Sourcepub fn completed_count(&self) -> usize
pub fn completed_count(&self) -> usize
Number of completed reports.
Auto Trait Implementations§
impl Freeze for ReportQueueManager
impl RefUnwindSafe for ReportQueueManager
impl Send for ReportQueueManager
impl Sync for ReportQueueManager
impl Unpin for ReportQueueManager
impl UnsafeUnpin for ReportQueueManager
impl UnwindSafe for ReportQueueManager
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more