errlanes 0.16.13

Four error lanes (Rejected/Denied/Transient/Fatal) carried in the type, not re-derived at every layer
Documentation
//! Four error lanes — `Rejected(D)` / `Denied` / `Transient` / `Fatal` —
//! carried in the type instead of re-derived at every layer.
//!
//! See the crate [README](https://github.com/GaloyMoney/es-entity/blob/main/errlanes/README.md)
//! for a step-by-step introduction with runnable examples.

#![forbid(unsafe_code)]
#![doc = include_str!("../README.md")]

mod classify;
mod dynamic;
mod fail;
mod lane;
pub mod profile;
mod result_ext;
pub use profile::{AllLanes, LaneProfile, NoLanes, WithoutDenied, WithoutTransient};

#[cfg(feature = "classify-sqlx")]
pub mod sqlx;

#[cfg(feature = "classify-serde-json")]
pub mod serde_json;

#[cfg(feature = "classify-reqwest")]
pub mod reqwest;

#[cfg(feature = "tracing")]
mod record;

pub use classify::{Classify, RejectedSlot, RejectedUnion};
#[doc(hidden)]
pub use fail::WidenResult;
pub use fail::{
    Fail, Failure, Fault, Laned, Level, Lift, Rejection, RejectionField, RejectionMetadata,
    UnmappedInto,
};
pub use lane::{Denied, Exhausted, Fatal, FatalKind, Lane, Transient, TransientKind};
pub use result_ext::ResultExt;
#[doc(hidden)]
pub use result_ext::{NarrowDeniedLane, NarrowRejectedLane};

#[cfg(feature = "tracing")]
pub use record::FIELDS;

#[cfg(feature = "derive")]
pub use errlanes_derive::{__compose_rejection, Classify, Failure, Lift, Rejection, compose};

#[cfg(all(feature = "derive", feature = "tracing"))]
pub use errlanes_derive::instrument;