Type Alias FLAC__StreamDecoderErrorCallback

Source
pub type FLAC__StreamDecoderErrorCallback = Option<unsafe extern "C" fn(decoder: *const FLAC__StreamDecoder, status: FLAC__StreamDecoderErrorStatus, client_data: *mut c_void)>;
Expand description

Signature for the error callback.

A function pointer matching this signature must be passed to one of the FLAC__stream_decoder_init_*() functions. The supplied function will be called whenever an error occurs during decoding.

\note In general, FLAC__StreamDecoder functions which change the state should not be called on the \a decoder while in the callback.

\param decoder The decoder instance calling the callback. \param status The error encountered by the decoder. \param client_data The callee’s client data set through FLAC__stream_decoder_init_*().

Aliased Type§

pub enum FLAC__StreamDecoderErrorCallback {
    None,
    Some(unsafe extern "C" fn(*const FLAC__StreamDecoder, u32, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const FLAC__StreamDecoder, u32, *mut c_void))

Some value of type T.