pub struct AtLeastOnceDelivery<M: Clone + Send + 'static> { /* private fields */ }Implementations§
Source§impl<M: Clone + Send + 'static> AtLeastOnceDelivery<M>
impl<M: Clone + Send + 'static> AtLeastOnceDelivery<M>
pub fn new( redeliver_interval_ms: u64, warn_after: u32, max_unconfirmed: usize, ) -> Self
pub fn deliver(&self, destination: impl Into<String>, message: M) -> Option<u64>
pub fn confirm_delivery(&self, id: u64) -> bool
pub fn redeliver(&self) -> Vec<UnconfirmedDelivery<M>>
pub fn warn_threshold(&self) -> u32
pub fn redeliver_interval_ms(&self) -> u64
pub fn unconfirmed_count(&self) -> usize
Auto Trait Implementations§
impl<M> !Freeze for AtLeastOnceDelivery<M>
impl<M> !RefUnwindSafe for AtLeastOnceDelivery<M>
impl<M> Send for AtLeastOnceDelivery<M>
impl<M> Sync for AtLeastOnceDelivery<M>
impl<M> Unpin for AtLeastOnceDelivery<M>
impl<M> UnsafeUnpin for AtLeastOnceDelivery<M>
impl<M> UnwindSafe for AtLeastOnceDelivery<M>where
M: RefUnwindSafe,
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