hyperlane 18.2.5

A lightweight, high-performance, and cross-platform Rust HTTP server library built on Tokio. It simplifies modern web service development by providing built-in support for middleware, WebSocket, Server-Sent Events (SSE), and raw TCP communication. With a unified and ergonomic API across Windows, Linux, and MacOS, it enables developers to build robust, scalable, and event-driven network applications with minimal overhead and maximum flexibility.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Trait for types that can be converted to a `'static` mutable reference.
///
/// This trait provides a way to obtain a `'static` mutable reference from
/// a mutable reference to `Self`, enabling safe lifetime extension for
/// certain use cases where the object is known to live for the entire
/// program duration.
pub trait Lifetime {
    /// Converts a mutable reference to `Self` into a `'static` mutable reference.
    ///
    /// # Returns
    ///
    /// - `&'static mut Self`: A mutable reference to the instance with a `'static` lifetime.
    fn leak_mut(&self) -> &'static mut Self;
}