diff options
Diffstat (limited to 'rust/qemu-api/src/cell.rs')
| -rw-r--r-- | rust/qemu-api/src/cell.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/rust/qemu-api/src/cell.rs b/rust/qemu-api/src/cell.rs index 148a13e3f5..9943d7286b 100644 --- a/rust/qemu-api/src/cell.rs +++ b/rust/qemu-api/src/cell.rs @@ -221,7 +221,7 @@ use std::{ ptr::NonNull, }; -use crate::bindings; +use crate::{bindings, impl_vmstate_transparent}; /// An internal function that is used by doctests. pub fn bql_start_test() { @@ -456,6 +456,8 @@ impl<T: Default> BqlCell<T> { } } +impl_vmstate_transparent!(crate::cell::BqlCell<T> where T: VMState); + /// A mutable memory location with dynamically checked borrow rules, /// protected by the Big QEMU Lock. /// @@ -764,6 +766,8 @@ impl<T> From<T> for BqlRefCell<T> { } } +impl_vmstate_transparent!(crate::cell::BqlRefCell<T> where T: VMState); + struct BorrowRef<'b> { borrow: &'b Cell<BorrowFlag>, } |