#[repr(C)]pub struct PropertyInfo {
pub name: *const i8,
pub description: *const i8,
pub enum_table: *const *const i8,
pub print: Option<unsafe extern "C" fn(*mut DeviceState, *mut Property, *mut i8, u64) -> i32>,
pub get: Option<unsafe extern "C" fn(*mut Object, *mut Visitor, *const i8, *mut c_void, *mut *mut Error)>,
pub set: Option<unsafe extern "C" fn(*mut Object, *mut Visitor, *const i8, *mut c_void, *mut *mut Error)>,
pub release: Option<unsafe extern "C" fn(*mut Object, *const i8, *mut c_void)>,
}Fields§
§name: *const i8§description: *const i8§enum_table: *const *const i8§print: Option<unsafe extern "C" fn(*mut DeviceState, *mut Property, *mut i8, u64) -> i32>§get: Option<unsafe extern "C" fn(*mut Object, *mut Visitor, *const i8, *mut c_void, *mut *mut Error)>§set: Option<unsafe extern "C" fn(*mut Object, *mut Visitor, *const i8, *mut c_void, *mut *mut Error)>§release: Option<unsafe extern "C" fn(*mut Object, *const i8, *mut c_void)>Trait Implementations§
Source§impl Clone for PropertyInfo
impl Clone for PropertyInfo
Source§fn clone(&self) -> PropertyInfo
fn clone(&self) -> PropertyInfo
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 PropertyInfo
impl Debug for PropertyInfo
impl Copy for PropertyInfo
Auto Trait Implementations§
impl Freeze for PropertyInfo
impl RefUnwindSafe for PropertyInfo
impl !Send for PropertyInfo
impl !Sync for PropertyInfo
impl Unpin for PropertyInfo
impl UnwindSafe for PropertyInfo
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