]> git.ipfire.org Git - thirdparty/qemu.git/commit
rust: qdev: make ObjectImpl a supertrait of DeviceImpl
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jan 2025 11:01:18 +0000 (12:01 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 13 Feb 2025 11:19:33 +0000 (12:19 +0100)
commit68da5402df003a855c581563acc6f5f8c5d563f0
tree69f0fca56b741a84762bc9e51c198c229d3638c8
parent688c67415858684a2feef4477e6bc8159ac090bd
rust: qdev: make ObjectImpl a supertrait of DeviceImpl

In practice it has to be implemented always in order to access an
implementation of ClassInitImpl<ObjectClass>.  Make the relationship
explicit in the code.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/qemu-api/src/qdev.rs