nghttp2_rand_callback

Type Alias nghttp2_rand_callback 

Source
pub type nghttp2_rand_callback = Option<unsafe extern "C" fn(dest: *mut u8, destlen: usize)>;
Expand description

@functypedef

Callback function invoked when unpredictable data of |destlen| bytes are needed. The implementation must write unpredictable data of |destlen| bytes into the buffer pointed by |dest|.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.