#[repr(C)]pub struct GlobalProperty {
pub driver: *const i8,
pub property: *const i8,
pub value: *const i8,
pub user_provided: bool,
pub used: bool,
pub errp: *mut *mut Error,
}Expand description
GlobalProperty: @user_provided: Set to true if property comes from user-provided config (command-line or config file). @used: Set to true if property was used when initializing a device. @errp: Error destination, used like first argument of error_setg() in case property setting fails later. If @errp is NULL, we print warnings instead of ignoring errors silently. For hotplugged devices, errp is always ignored and warnings are printed instead.
Fields§
§driver: *const i8§property: *const i8§value: *const i8§user_provided: bool§used: bool§errp: *mut *mut ErrorTrait Implementations§
Source§impl Clone for GlobalProperty
impl Clone for GlobalProperty
Source§fn clone(&self) -> GlobalProperty
fn clone(&self) -> GlobalProperty
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 Debug for GlobalProperty
impl Debug for GlobalProperty
impl Copy for GlobalProperty
Auto Trait Implementations§
impl Freeze for GlobalProperty
impl RefUnwindSafe for GlobalProperty
impl !Send for GlobalProperty
impl !Sync for GlobalProperty
impl Unpin for GlobalProperty
impl UnwindSafe for GlobalProperty
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