Skip to main content

PrismAvailabilityCallback

Type Alias PrismAvailabilityCallback 

Source
pub type PrismAvailabilityCallback = Option<unsafe extern "C" fn(userdata: *mut c_void, backend: PrismBackendId, name: *const c_char, available: bool)>;
Expand description

The type of a function invoked when a backend’s runtime availability changes.

Aliased Type§

pub enum PrismAvailabilityCallback {
    None,
    Some(unsafe extern "C" fn(*mut c_void, u64, *const i8, bool)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.