FuriThreadStdoutWriteCallback

Type Alias FuriThreadStdoutWriteCallback 

Source
pub type FuriThreadStdoutWriteCallback = Option<unsafe extern "C" fn(data: *const c_char, size: usize, context: *mut c_void)>;
Expand description

Standard output callback function pointer type.

The function to be used as a standard output callback MUST follow this signature.

The handler MUST process ALL of the provided data before returning.

§Arguments

  • data (direction in) - pointer to the data to be written to the standard out
  • size (direction in) - size of the data in bytes
  • context (direction in) - optional context

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.