Struct backdrop::thread::GLOBAL_TRASH_THREAD_HANDLE
source · pub struct GLOBAL_TRASH_THREAD_HANDLE { /* private fields */ }
Available on crate feature
std
only.Expand description
The global handle used by the TrashThreadStrategy
.
This trash thread is a global thread that is started using lazy_static
.
If you use this strategy, you probably want to control when the thread
is started using lazy_static::initialize(&GLOBAL_TRASH_THREAD_HANDLE)
(If you do not, it is started when it is used for the first time,
meaning the very first drop will be slower.)
Trait Implementations§
source§impl Deref for GLOBAL_TRASH_THREAD_HANDLE
impl Deref for GLOBAL_TRASH_THREAD_HANDLE
§type Target = GlobalTrashThreadHandle
type Target = GlobalTrashThreadHandle
The resulting type after dereferencing.
source§fn deref(&self) -> &GlobalTrashThreadHandle
fn deref(&self) -> &GlobalTrashThreadHandle
Dereferences the value.
impl LazyStatic for GLOBAL_TRASH_THREAD_HANDLE
Auto Trait Implementations§
impl RefUnwindSafe for GLOBAL_TRASH_THREAD_HANDLE
impl Send for GLOBAL_TRASH_THREAD_HANDLE
impl Sync for GLOBAL_TRASH_THREAD_HANDLE
impl Unpin for GLOBAL_TRASH_THREAD_HANDLE
impl UnwindSafe for GLOBAL_TRASH_THREAD_HANDLE
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.