trz_gateway_common/is_global.rs
1/// Shortcut for global config types that must be thread-safe.
2pub trait IsGlobal: Send + Sync + 'static {}
3
4impl<C: Send + Sync + 'static> IsGlobal for C {}
5
6/// Shortcut for [error](std::error::Error) types that must be thread-safe.
7pub trait IsGlobalError: IsGlobal + std::error::Error {}
8
9impl<E: IsGlobal + std::error::Error> IsGlobalError for E {}