errlanes 0.17.0

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 carrier;
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;

#[doc(hidden)]
pub use carrier::{Absorb, BuiltinFor, IntoLanes, LaneRejected, WidenBy, kind};
pub use carrier::{Carrier, LaneRef, Repr};
pub use classify::{Classify, RejectedSlot, RejectedUnion};
#[doc(hidden)]
pub use fail::WidenResult;
pub use fail::{
    Fail, 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, NarrowRejectedBy, NarrowRejectedLane};

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

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

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