pub struct Enqueue {
pub payload: Vec<u8>,
pub deadline_ms: u64,
pub keys_if_undelivered: Vec<Vec<u8>>,
pub backoff_schedule: Option<Vec<u32>>,
}
Expand description
A request to enqueue a message to the database. This message is delivered to a listener of the queue at least once.
Retry
When the delivery of a message fails, it is retried for a finite number
of times. Each retry happens after a backoff period. The backoff periods
are specified by the backoff_schedule
field in milliseconds. If
unspecified, the default backoff schedule of the platform (CLI or Deploy)
is used.
If all retry attempts failed, the message is written to the KV under all
keys specified in keys_if_undelivered
.
Fields§
§payload: Vec<u8>
§deadline_ms: u64
§keys_if_undelivered: Vec<Vec<u8>>
§backoff_schedule: Option<Vec<u32>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Enqueue
impl Send for Enqueue
impl Sync for Enqueue
impl Unpin for Enqueue
impl UnwindSafe for Enqueue
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