fune/toolkit/components/bitsdownload/bits_client
Bastien Orivel 30fbaf2b30 Bug 1580908 - Part 5: Update rand to 0.6 in bits_client. r=froydnj
I deliberately didn't update to the latest rand version to avoid
introducing yet another version. The update to rand 0.7 will have to
wait a bit more as dependencies aren't ready yet

Differential Revision: https://phabricator.services.mozilla.com/D45714

--HG--
extra : moz-landing-system : lando
2019-09-12 21:46:13 +00:00
..
bits Bug 1574276 - Update traits in the bits library to specify dyn. r=agashlin 2019-08-16 17:22:15 +00:00
examples Bug 1563790 - Part 1: Expose and require No Progress Timeout r=bytesized,rstrong 2019-08-01 20:01:09 +00:00
src Bug 1563790 - Part 1: Expose and require No Progress Timeout r=bytesized,rstrong 2019-08-01 20:01:09 +00:00
.gitignore
Cargo.toml Bug 1580908 - Part 5: Update rand to 0.6 in bits_client. r=froydnj 2019-09-12 21:46:13 +00:00
README.md

bits_client

Interfaces for BITS.

building

This relies on a few things that are not yet in a released winapi, you can use the following patch in Cargo.toml:

[patch.crates-io]
winapi = { git = "https://github.com/froydnj/winapi-rs", branch = "aarch64" }

bits_client lib

bits_client is the primary target and provides BitsClient, an API for creating and monitoring BITS jobs.

bits_client::new() creates a BitsClient that does all operations within the current process, as the current user.

bits crate

bits is a safe interface to BITS, providing connections to the Background Copy Manager, some basic operations on Background Copy Jobs, and methods for implementing IBackgroundCopyCallbacks in Rust.

test_client example

examples/test_client.rs shows how to use the API.