pub type ShimFallbackHandler<OU = DefaultOnUninit> = CommonShimHandler<OU, Fallback>;Expand description
A fallback handler which uses both the global and thread-local scopes, with the thread-local scope taking precedence.
Aliased Type§
pub struct ShimFallbackHandler<OU = DefaultOnUninit> { /* private fields */ }Implementations§
Source§impl ShimFallbackHandler<UseDefaultOnUninitShim<Fallback>>
impl ShimFallbackHandler<UseDefaultOnUninitShim<Fallback>>
Sourcepub const USE_DEFAULT_ON_UNINIT: Self
pub const USE_DEFAULT_ON_UNINIT: Self
See [Self::use_default_on_uninit].
Sourcepub const fn use_default_on_uninit() -> Self
pub const fn use_default_on_uninit() -> Self
If both the primary and fallback handlers are uninitialized, use the inner cache to handle the error instead.
Trait Implementations§
Source§impl TryDropStrategy for ShimFallbackHandler<DoNothingOnUninit>
impl TryDropStrategy for ShimFallbackHandler<DoNothingOnUninit>
Source§fn handle_error(&self, error: Error)
fn handle_error(&self, error: Error)
Handle the drop error.
Source§impl TryDropStrategy for ShimFallbackHandler<FlagOnUninit>
impl TryDropStrategy for ShimFallbackHandler<FlagOnUninit>
Source§fn handle_error(&self, error: Error)
fn handle_error(&self, error: Error)
Handle the drop error.
Source§impl TryDropStrategy for ShimFallbackHandler<PanicOnUninit>
impl TryDropStrategy for ShimFallbackHandler<PanicOnUninit>
Source§fn handle_error(&self, error: Error)
fn handle_error(&self, error: Error)
Handle the drop error.
Source§impl TryDropStrategy for ShimFallbackHandler<UseDefaultOnUninitShim<Fallback>>
impl TryDropStrategy for ShimFallbackHandler<UseDefaultOnUninitShim<Fallback>>
Source§fn handle_error(&self, error: Error)
fn handle_error(&self, error: Error)
Handle the drop error.