mariadb-cli 0.1.1

One-shot agent-native command line client for MariaDB servers
Documentation
//! Process lifetime: signals, cancellation and the work ceiling.
//!
//! # The one ceiling on simultaneous work
//!
//! `gate.rs` used to sit beside this file unbuilt, offering a second
//! concurrency limiter nobody called, and declaring `MAX_PERMITS = 64` as the
//! bound no configuration may exceed while the bound the product actually
//! applied was a `32` written inside `settings::concurrency`. Two public
//! statements of one rule, differing by a factor of two, and only one of them
//! reached any decision.
//!
//! There is now one statement. `gate::MAX_PERMITS` is it, `gate::admissible`
//! is where the domain is decided, and `settings::concurrency` reads both
//! rather than carrying a number of its own. The gate is on the path the work
//! takes: `dispatch::fanout` holds a licence for every destination it serves,
//! which is what makes the ceiling something the product enforces rather than
//! something it merely publishes.
//!
//! A licence is taken and returned within one task, not across several. The
//! fan-out polls its futures in place, precisely to avoid the `'static` bound
//! that spawning demands, and the semaphore behind the gate bounds them there
//! just as well as it would bound spawned tasks.

pub mod backoff;
pub mod gate;
pub mod shutdown;
pub mod timeout;

pub use backoff::{retry, Backoff};
pub use gate::{Gate, Licence};
pub use shutdown::{Shutdown, StopReason};
pub use timeout::{AbortOutcome, Phase, ServerAbort};