A join-guard
struct JoinGuard<'a> {
/* private fields */
}| Name | Description |
|---|---|
| Drop | Objects with a destructor. |
| Leak | Objects that can be leaked without causing memory unsafety. |
Note that this is !Leak because it allows other threads to reference objects on our stack and those threads have to be joined before the end of the objects' lifetimes.