#[repr(C)]pub struct Params {
pub template: *const u8,
pub handler_func: extern "C" fn(data: *const u8, result: isize, template: *mut u8),
pub handler_data: *const u8,
}Expand description
Parameters of identify
Fields§
§template: *const u8Specific template to identify against (may be null for all enrolled fingers).
handler_func: extern "C" fn(data: *const u8, result: isize, template: *mut u8)Callback when the identification process finishes.
The handler is called at most once. The result of the identification is encoded as follows:
-
resultis 1 for a successful identification. Thetemplatepointer is allocated by the scheduler and contains the template ID. -
resultis 0 for a mismatch identification. The pointer is null. -
resultis negative for errors. The pointer is null.
The handler is unregistered before being called, such that the handler may trigger a following identification.
handler_data: *const u8Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl !Send for Params
impl !Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more