pub struct DeliveryTracker { /* private fields */ }Implementations§
Source§impl DeliveryTracker
impl DeliveryTracker
pub fn new( stream_id: impl Into<String>, author_id: impl Into<String>, recipients: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn observe_announcement( &mut self, announcement: &DeliveryAnnouncement, ) -> Result<(), ProtocolError>
pub fn observe_receipt( &mut self, receipt: &DeliveryReceipt, ) -> Result<(), ProtocolError>
pub fn state_for( &self, sequence: u64, profile: &DeliveryProfile, quorum: Option<&QuorumPolicy>, ) -> Option<DeliveryState>
pub fn highest_receipt_for(&self, recipient_id: &str) -> Option<u64>
Trait Implementations§
Source§impl Clone for DeliveryTracker
impl Clone for DeliveryTracker
Source§fn clone(&self) -> DeliveryTracker
fn clone(&self) -> DeliveryTracker
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 moreSource§impl Debug for DeliveryTracker
impl Debug for DeliveryTracker
Source§impl PartialEq for DeliveryTracker
impl PartialEq for DeliveryTracker
impl Eq for DeliveryTracker
impl StructuralPartialEq for DeliveryTracker
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§
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