Skip to main content

Crate busybeaver

Crate busybeaver 

Source

Structs§

Beaver
BusyBeaver: Because sometimes your tasks need to run like a Busy Beaver — tirelessly attempting until they produce the maximum possible success (or hit their busy beaver bound).
FixedCountBuilder
Builder for fixed-count retry tasks.
PeriodicBuilder
Builder for periodic tasks.
RangeIntervalBuilder
Builder for retry tasks with range-based time intervals.
TaskId
Unique task identifier (16-byte UUID, no heap allocation).
TimeIntervalBuilder
Builder for time-interval retry tasks.

Enums§

BeaverError
Unified error type for the library.
RuntimeError
Runtime error, passed to the caller via Listener.
Task
WorkResult
Result of a work execution.

Traits§

FixedCountProgress
Progress callback for fixed-count retry tasks, called before each execution.
Work
A unit of work that can be executed and retried.
WorkListener
Listener for task lifecycle events.

Functions§

listener
Creates a WorkListener from two closures (without error handling).
listener_with_error
Creates a WorkListener from three closures (with error handling).
work
Creates a Work from an async closure.

Type Aliases§

BeaverResult
Unified Result type for the library.