ShimFallbackHandler

Type Alias ShimFallbackHandler 

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

Source

pub const USE_DEFAULT_ON_UNINIT: Self

See [Self::use_default_on_uninit].

Source

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.

Source§

impl ShimFallbackHandler<DefaultOnUninit>

Source

pub const DEFAULT: Self = Self::USE_DEFAULT_ON_UNINIT

The default thing to do when both the primary and fallback handlers are uninitialized.

Trait Implementations§

Source§

impl TryDropStrategy for ShimFallbackHandler<DoNothingOnUninit>

Source§

fn handle_error(&self, error: Error)

Handle the drop error.
Source§

impl TryDropStrategy for ShimFallbackHandler<FlagOnUninit>

Source§

fn handle_error(&self, error: Error)

Handle the drop error.
Source§

impl TryDropStrategy for ShimFallbackHandler<PanicOnUninit>

Source§

fn handle_error(&self, error: Error)

Handle the drop error.
Source§

impl TryDropStrategy for ShimFallbackHandler<UseDefaultOnUninitShim<Fallback>>

Source§

fn handle_error(&self, error: Error)

Handle the drop error.