ObjectPropertyAccessor

Type Alias ObjectPropertyAccessor 

Source
pub type ObjectPropertyAccessor = Option<unsafe extern "C" fn(obj: *mut Object, v: *mut Visitor, name: *const c_char, opaque: *mut c_void, errp: *mut *mut Error)>;
Expand description

ObjectPropertyAccessor: @obj: the object that owns the property @v: the visitor that contains the property data @name: the name of the property @opaque: the object property opaque @errp: a pointer to an Error that is filled if getting/setting fails.

Called when trying to get/set a property.

Aliased Type§

pub enum ObjectPropertyAccessor {
    None,
    Some(unsafe extern "C" fn(*mut Object, *mut Visitor, *const i8, *mut c_void, *mut *mut Error)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut Object, *mut Visitor, *const i8, *mut c_void, *mut *mut Error))

Some value of type T.