Module handlers

Module handlers 

Source
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§

UninitializedError
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.