mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-13 06:38:48 +02:00
Differential Revision: https://phabricator.services.mozilla.com/D17989 --HG-- extra : moz-landing-system : lando
33 lines
879 B
Markdown
33 lines
879 B
Markdown
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`:
|
|
|
|
```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 `IBackgroundCopyCallback`s in Rust.
|
|
|
|
test\_client example
|
|
-------------------
|
|
|
|
`examples/test_client.rs` shows how to use the API.
|