pub struct TailChoppingRouter<M: Send + Clone + 'static> {
pub interval: Duration,
pub within: Duration,
/* private fields */
}Fields§
§interval: DurationHow long to wait for the previous attempt’s reply before
firing the next. A Duration::ZERO interval makes this
equivalent to scatter-gather.
within: DurationHard ceiling on how long the caller will wait overall.
Implementations§
Source§impl<M: Send + Clone + 'static> TailChoppingRouter<M>
impl<M: Send + Clone + 'static> TailChoppingRouter<M>
pub fn new( routees: Vec<ActorRef<M>>, interval: Duration, within: Duration, ) -> Self
Sourcepub fn routee_count(&self) -> usize
pub fn routee_count(&self) -> usize
Number of routees currently registered.
Sourcepub fn next_attempt(&self) -> Option<&ActorRef<M>>
pub fn next_attempt(&self) -> Option<&ActorRef<M>>
Pick the next attempt’s recipient; returns None when the
router is empty.
Sourcepub fn max_attempts(&self) -> usize
pub fn max_attempts(&self) -> usize
Maximum number of distinct attempts within within.
Auto Trait Implementations§
impl<M> !Freeze for TailChoppingRouter<M>
impl<M> !RefUnwindSafe for TailChoppingRouter<M>
impl<M> Send for TailChoppingRouter<M>
impl<M> Sync for TailChoppingRouter<M>
impl<M> Unpin for TailChoppingRouter<M>
impl<M> UnsafeUnpin for TailChoppingRouter<M>
impl<M> !UnwindSafe for TailChoppingRouter<M>
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