Expand description
Manage the primary and fallback handlers and their scopes.
Re-exports§
pub use primary::shim::ShimPrimaryHandler as PrimaryHandler;pub use primary::shim::DEFAULT_SHIM_PRIMARY_HANDLER as DEFAULT_PRIMARY_HANDLER;pub use fallback::shim::ShimFallbackHandler as FallbackHandler;pub use fallback::shim::DEFAULT_SHIM_FALLBACK_HANDLER as DEFAULT_FALLBACK_HANDLER;
Modules§
- fallback
- Manage the fallback handler.
- on_
uninit - Types and traits on what to do when the global, thread local, or shim drop strategies is uninitialized.
- primary
- Manage the primary handler.
Structs§
- Uninitialized
Error - This error occurs when an attempt to get a drop strategy is made before it is initialized.
Functions§
- install_
global_ handlers - This installs the primary and fallback global handlers.
- install_
global_ handlers_ dyn - This installs the primary and fallback global handlers. Must be a dynamic trait object.
- install_
thread_ local_ handlers - This installs the primary and fallback thread local handlers.
- install_
thread_ local_ handlers_ dyn - This installs the primary and fallback thread local handlers. Must be a dynamic trait object.
- install_
thread_ local_ handlers_ for_ this_ scope - This installs the primary and fallback thread local handlers for this scope.
- install_
thread_ local_ handlers_ for_ this_ scope_ dyn - This installs the primary and fallback thread local handlers for this scope. Must be a dynamic trait object.
- uninstall_
for_ thread - This uninstalls the primary and fallback thread local handlers.
- uninstall_
globally - This uninstalls the primary and fallback global handlers.