Skip to main content

Crate boson_core

Crate boson_core 

Source
Expand description

Shared types, QueueBackend trait, router, and identity hooks.

Task authors usually start with boson. This crate holds shared DTOs, the QueueBackend trait, and identity types used by runtime and backend adapters.

§Entry points

Hosts inject a QueueBackend implementation at build time; this crate has no I/O.

Re-exports§

pub use backend::default_backend_from_global;
pub use backend::JobEnqueueDisposition;
pub use backend::QueueBackend;
pub use error::BosonError;
pub use error::IdentityError;
pub use error::Result;
pub use identity::ExecutionContext;
pub use identity::ExecutionContextFactory;
pub use identity::JsonExecutionContextFactory;
pub use models::IdempotencyMode;
pub use models::Job;
pub use models::JobStatus;
pub use models::RateLimitPolicy;
pub use models::RetryPolicy;
pub use models::Run;
pub use models::RunStatus;
pub use models::TaskConfig;
pub use models::TaskRunStats;
pub use router::QueueRouter;

Modules§

backend
Queue persistence trait and related types.
error
Error types for Boson core operations.
identity
Identity reconstruction at the task handler boundary.
models
Portable domain models for queue persistence.
router
Named QueueBackend registry.