Type Alias ExitHandler

Source
pub(crate) type ExitHandler = dyn Fn(usize) + Send + Sync;
Expand description

The type for a closure that gets invoked when a thread exits. The closure is passed the index of the thread on which it is invoked. Note that this same closure may be invoked multiple times in parallel.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: (unsized)