Contents
use utopia_queue::Delivery;Rust
pub struct Delivery {
pub envelope: Envelope,
pub attempts: u64,
// private fields
}A message taken from the queue, held until it is committed or rejected.
Dropping one without either leaves it to come back once the queue's ack wait passes.
use utopia_queue::Envelope;Rust
pub struct Envelope {
pub pid: String,
pub queue: String,
pub timestamp: i64,
pub payload: Value,
}A message as Broker\Nats enqueues it.
use utopia_queue::Worker;Rust
pub struct Worker {
// private fields
}Undocumented.
use utopia_queue::Error;Rust
pub enum Error {
Dsn(String),
Nats(Error),
}Undocumented.
Rust
pub type Result<T> = Result<T, Error>;Undocumented.