async-dropper-simple 0.2.6

A simple struct-wrapper (i.e. AsyncDropper<T>) based implementation of AsyncDrop
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<h1 align="center">🗑  <code>async-dropper-simple</code></h1>

`async-dropper` is probably the least-worst ad-hoc `AsyncDrop` implementation you've seen, and it works in two ways:

- `async_dropper::simple` is stolen nearly verbatim from [this StackOverflow answer]https://stackoverflow.com/a/75584109 (thanks to [`paholg`]https://stackoverflow.com/users/2977291/paholg!)
- `async_dropper::derive` provides a trait called `AsyncDrop` and corresponding [derive macro][rust-derive-macro], which try to use `Default` and `PartialEq` to determine when to async drop.

The code in this crate powers `async_dropper::simple`. See the `async_dropper` crate for more details.

## Feature flags

| Flag               | Description                                                                           |
|--------------------|---------------------------------------------------------------------------------------|
| `tokio`            | Use the [`tokio`][tokio] async runtime                                                |
| `async-std`        | use the [`async-std`][async-std] async runtime                                        |
| `no-default-bound` | Avoid the `Default` bound on your `T` by wrapping the interior data in an `Option<T>` |