| Crates.io | async-dropper-simple |
| lib.rs | async-dropper-simple |
| version | 0.2.6 |
| created_at | 2023-07-29 05:21:38.985426+00 |
| updated_at | 2024-01-31 08:24:01.195614+00 |
| description | A simple struct-wrapper (i.e. AsyncDropper |
| homepage | |
| repository | https://github.com/t3hmrman/async-dropper |
| max_upload_size | |
| id | 929113 |
| size | 31,341 |
async-dropper-simpleasync-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 (thanks to 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.
| 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> |