rust: Implement can_cache
commit64e4f7097c159e46337dd84864745623c54d149f
authorEric Blake <eblake@redhat.com>
Fri, 16 Aug 2019 15:38:37 +0000 (16 10:38 -0500)
committerEric Blake <eblake@redhat.com>
Fri, 16 Aug 2019 17:47:11 +0000 (16 12:47 -0500)
tree9dd64c9aa12f4eb38a54501cb1f49ffd39772ecb
parent8f737083f6bf8fee8c5121e5e7fd93d564906f96
rust: Implement can_cache

Implementing extents requires some coordination for the Rust code to
call back into libnbdkit; I'm not familiar with Rust enough to do
that. But with placeholders for those slots, implementing
can_cache/cache is trivial.  This improves the situation mentioned in
commit 031fae85.

Signed-off-by: Eric Blake <eblake@redhat.com>
plugins/rust/nbdkit-rust-plugin.pod
plugins/rust/src/lib.rs