pub struct RegisterDescriptor<'a> {
pub name: String,
pub feature: Option<String>,
/* private fields */
}Expand description
Wrapper structure for a qemu_plugin_register_descriptor
§Safety
This structure is safe to use as long as the pointer is valid. The pointer is always opaque, and therefore may not be dereferenced.
Fields§
§name: StringThe register name
feature: Option<String>Optional feature descriptor
Implementations§
Trait Implementations§
Source§impl<'a> Clone for RegisterDescriptor<'a>
impl<'a> Clone for RegisterDescriptor<'a>
Source§fn clone(&self) -> RegisterDescriptor<'a>
fn clone(&self) -> RegisterDescriptor<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RegisterDescriptor<'a>
impl<'a> Debug for RegisterDescriptor<'a>
Source§impl<'a> From<qemu_plugin_reg_descriptor> for RegisterDescriptor<'a>
impl<'a> From<qemu_plugin_reg_descriptor> for RegisterDescriptor<'a>
Source§fn from(descriptor: qemu_plugin_reg_descriptor) -> Self
fn from(descriptor: qemu_plugin_reg_descriptor) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for RegisterDescriptor<'a>
impl<'a> RefUnwindSafe for RegisterDescriptor<'a>
impl<'a> Send for RegisterDescriptor<'a>
impl<'a> Sync for RegisterDescriptor<'a>
impl<'a> Unpin for RegisterDescriptor<'a>
impl<'a> UnwindSafe for RegisterDescriptor<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more