PropertyValueCallback

Type Alias PropertyValueCallback 

Source
pub type PropertyValueCallback = Option<unsafe extern "C" fn(key: *const c_char, value: *const c_char, last: bool, context: *mut c_void)>;
Expand description

Callback type called every time another key-value pair of device information is ready

§Arguments

  • key[in] - device information type identifier
  • value[in] - device information value
  • last[in] - whether the passed key-value pair is the last one
  • context[in] - to pass to callback

Aliased Type§

pub enum PropertyValueCallback {
    None,
    Some(unsafe extern "C" fn(*const u8, *const u8, bool, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const u8, *const u8, bool, *mut c_void))

Some value of type T.