Skip to main content

CrispasrProgressCallback

Type Alias CrispasrProgressCallback 

Source
pub type CrispasrProgressCallback = Option<unsafe extern "C" fn(processed: c_int, total: c_int, user_data: *mut c_void)>;
Expand description

Progress callback for long-form (chunked) transcription (issue #208). Option<...> so a null pointer clears the callback (C NULL).

Aliased Type§

pub enum CrispasrProgressCallback {
    None,
    Some(unsafe extern "C" fn(i32, i32, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, i32, *mut c_void))

Some value of type T.