mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-05 03:30:03 +00:00
Add more doc for AsyncFileWriter
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
5ba8b07bcb
commit
e62775a9ec
1 changed files with 5 additions and 0 deletions
|
@ -148,6 +148,11 @@ impl AsyncFileWriterInner {
|
|||
}
|
||||
}
|
||||
|
||||
/// AsyncFileWriter will pass the `Bytes` you give to another thread via
|
||||
/// a `mpsc` and decompress and unpack it if needed.
|
||||
///
|
||||
/// # Cancellation
|
||||
///
|
||||
/// AsyncFileWriter removes the file if `done` isn't called.
|
||||
#[derive(Debug)]
|
||||
pub struct AsyncFileWriter(ScopeGuard<AsyncFileWriterInner, fn(AsyncFileWriterInner), Always>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue