pub type ULFileSystemGetFileMimeTypeCallback = Option<unsafe extern "C" fn(path: ULString) -> ULString>;
Expand description

Get the mime-type of the file (eg “text/html”).

This is usually determined by analyzing the file extension.

If a mime-type cannot be determined, you should return “application/unknown” for this value.

The library will consume the result and call ulDestroyString() after this call returns.

Aliased Type§

enum ULFileSystemGetFileMimeTypeCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut C_String) -> *mut C_String),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut C_String) -> *mut C_String)

Some value of type T.