Skip to main content

vllm_token_callback

Type Alias vllm_token_callback 

Source
pub type vllm_token_callback = Option<unsafe extern "C" fn(delta_text: *const c_char, finished: bool, user_data: *mut c_void) -> bool>;

Aliased Type§

pub enum vllm_token_callback {
    None,
    Some(unsafe extern "C" fn(*const i8, bool, *mut c_void) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const i8, bool, *mut c_void) -> bool)

Some value of type T.