hyperlane-plugin-maintenance 23.3.1

A lock-free atomic maintenance and read-only mode plugin for the Hyperlane framework with live zero-restart switching, path and constant-time bypass-token exemptions, Retry-After headers, and prebuilt 503 wire responses.
Documentation
//! hyperlane-plugin-maintenance
//!
//! Lock-free atomic maintenance and read-only mode middleware for Hyperlane
//! with zero-restart live switching, path/token bypasses, and prebuilt `503`
//! wire responses.

mod r#const;
mod r#enum;
mod r#fn;
mod r#impl;
mod r#static;
mod r#struct;

#[cfg(test)]
#[path = "../tests/mod.rs"]
mod tests;

pub use {r#const::*, r#enum::*, r#struct::*};

pub(crate) use {r#fn::*, r#static::*};

use std::{
    hint::black_box,
    sync::{
        OnceLock,
        atomic::{AtomicU8, Ordering},
    },
};

use {
    hyperlane::{
        CONTENT_TYPE, Context, HashSetXxHash3_64, HttpStatus, Method, RETRY_AFTER, Request,
        Response, ResponseError, ServerHook, Status, Stream, hash_set_xx_hash3_64,
    },
    lombok_macros::*,
};