Skip to main content

Module builder

Module builder 

Source
Expand description

High-level builder for creating a RustQueue instance as an embedded library.

This module provides a zero-config entry point for using RustQueue without running a server. Just pick a storage backend and call .build():

use rustqueue::RustQueue;
use serde_json::json;

let rq = RustQueue::memory().build()?;
let id = rq.push("emails", "send-welcome", json!({"to": "a@b.com"}), None).await?;

Structs§

RustQueue
High-level client for RustQueue, usable as an embedded library.
RustQueueBuilder
Builder for constructing a RustQueue instance.