riot_sys::bindgen

Type Alias ble_store_status_fn

Source
pub type ble_store_status_fn = Option<unsafe extern "C" fn(event: *mut ble_store_status_event, arg: *mut c_void) -> c_int>;
Expand description

Indicates an inability to perform a store operation. This callback should do one of two things: o Address the problem and return 0, indicating that the store operation should proceed. o Return nonzero to indicate that the store operation should be aborted.

@param event Describes the store event being reported. @param arg Optional user argument.

@return 0 if the store operation should proceed; nonzero if the store operation should be aborted.

Aliased Type§

enum ble_store_status_fn {
    None,
    Some(unsafe extern "C" fn(_: *mut ble_store_status_event, _: *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut ble_store_status_event, _: *mut c_void) -> i32)

Some value of type T.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 4 bytes

Size for each variant:

  • None: 0 bytes
  • Some: 4 bytes