pub struct DeliveryTracker { /* private fields */ }Expand description
Delivery tracker
Implementations§
Source§impl DeliveryTracker
impl DeliveryTracker
pub fn new() -> Self
Sourcepub fn record_delivery(&mut self, record: DeliveryRecord)
pub fn record_delivery(&mut self, record: DeliveryRecord)
Record a delivery and update aggregate status counters.
Sourcepub fn get_delivery(&self, record_id: &str) -> Option<&DeliveryRecord>
pub fn get_delivery(&self, record_id: &str) -> Option<&DeliveryRecord>
Look up a delivery record by id.
Sourcepub fn list_deliveries(&self) -> impl Iterator<Item = &DeliveryRecord>
pub fn list_deliveries(&self) -> impl Iterator<Item = &DeliveryRecord>
Iterate over all recorded deliveries.
Sourcepub fn status(&self) -> &DeliveryStatus
pub fn status(&self) -> &DeliveryStatus
Get a snapshot of the aggregate delivery status.
Auto Trait Implementations§
impl Freeze for DeliveryTracker
impl RefUnwindSafe for DeliveryTracker
impl Send for DeliveryTracker
impl Sync for DeliveryTracker
impl Unpin for DeliveryTracker
impl UnsafeUnpin for DeliveryTracker
impl UnwindSafe for DeliveryTracker
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