wtx 0.45.0

A collection of different transport implementations and related tools focused primarily on web technologies.
Documentation
//! Pool Manager

mod resource_manager;
mod simple_pool;

#[cfg(all(feature = "postgres", feature = "secret"))]
pub use resource_manager::database::PostgresRM;
pub use resource_manager::{ResourceManager, SimpleRM};
pub use simple_pool::*;

/// Manages HTTP/2 resources for clients and servers.
#[cfg(feature = "http2")]
pub type Http2BufferRM = SimpleRM<fn() -> crate::Result<crate::http2::Http2Buffer>>;
/// Manages resources for HTTP2 requests and responses.
#[cfg(feature = "http2")]
pub type StreamBufferRM = SimpleRM<fn() -> crate::Result<crate::http::ReqResBuffer>>;
/// Manages WebSocket resources.
#[cfg(feature = "web-socket")]
pub type WebSocketRM = SimpleRM<fn() -> crate::Result<crate::web_socket::WebSocketBuffer>>;