trz-gateway-common 0.2.4

Secure Proxy / Agents implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
/// Shortcut for global config types that must be thread-safe.
pub trait IsGlobal: Send + Sync + 'static {}

impl<C: Send + Sync + 'static> IsGlobal for C {}

/// Shortcut for [error](std::error::Error) types that must be thread-safe.
pub trait IsGlobalError: IsGlobal + std::error::Error {}

impl<E: IsGlobal + std::error::Error> IsGlobalError for E {}