[libvirt] [PATCH Rust 0/4] Map more functions in stream module
Zixing Liu
liushuyu at aosc.io
Tue Nov 12 21:44:41 UTC 2019
This set of patches will add more functions to the Rust bindings.
Newly mapped functions from C library: virStreamNew virStreamEventUpdateCallback virStreamEventRemoveCallback virStreamEventAddCallback.
virStreamEventAddCallback can accept normal fn functions or closures (can capture variables outside)
The changes are not very thoroughly tested since event module is not implemented at all so the virStreamEventAddCallback will always return "unsupported by the connection driver".
Also the changes have run though the rustfmt to ensure the format conforms to Rust officially recommended code style.
Zixing Liu (4):
libvirt-rust: stream: add more functions in stream
libvirt-rust: stream: add more functions in stream
libvirt-rust: stream: automated lint
libvirt-rust: use reference instead of moving
src/domain.rs | 2 +-
src/stream.rs | 128 ++++++++++++++++++++++++++++++++++++++++++------
tests/stream.rs | 40 +++++++++++++++
3 files changed, 153 insertions(+), 17 deletions(-)
create mode 100644 tests/stream.rs
--
2.24.0
More information about the libvir-list
mailing list