Enum tokio_nsq::NSQRequeueDelay
source · pub enum NSQRequeueDelay {
NoDelay,
DefaultDelay,
CustomDelay(Duration),
}
Expand description
Control what delay strategy the client will use for calculating requeue timeout
Variants§
NoDelay
Requeue the message with no delay.
DefaultDelay
Use the default delay strategy based on number of attempts.
CustomDelay(Duration)
Delay for a specific duration, millisecond precision.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for NSQRequeueDelay
impl Send for NSQRequeueDelay
impl Sync for NSQRequeueDelay
impl Unpin for NSQRequeueDelay
impl UnwindSafe for NSQRequeueDelay
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