Skip to main content

HddsOnDataAvailable

Type Alias HddsOnDataAvailable 

Source
pub type HddsOnDataAvailable = Option<unsafe extern "C" fn(data: *const u8, len: usize, user_data: *mut c_void)>;
Expand description

Callback for data available events.

§Parameters

  • data: Pointer to serialized sample bytes
  • len: Length of the serialized data in bytes
  • user_data: User-provided context pointer

Aliased Type§

pub enum HddsOnDataAvailable {
    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.