]> git.proxmox.com Git - pxar.git/commit
huge accessor refactoring
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 19 Feb 2020 09:54:14 +0000 (10:54 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 19 Feb 2020 09:54:14 +0000 (10:54 +0100)
commit29c17fc0729c73e171cc793315eef27c08f20536
tree01dec32db9682ad5aad3e8c25b57821e01050848
parent05005b1469c2105adc90c255ec0f76844b7096ca
huge accessor refactoring

Turn <'a> into <T: Clone + ReadAt>. We can still use `&'a
dyn ReadAt` in its place, but we can now also support using
an `Arc<File>` to create an Accessor of a 'static lifetime
for more convenient storage and reuse. This way the Accessor
can be thrown away after calling `open_root`.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
examples/randaccess.rs
src/accessor.rs
src/accessor/sync.rs