#[repr(C)]pub struct Params {
pub handler_step_func: extern "C" fn(data: *const u8, remaining: usize),
pub handler_step_data: *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 enroll
Fields§
§handler_step_func: extern "C" fn(data: *const u8, remaining: usize)Callback for each enrollment step.
This handler may be called multiple times during the enrollment process. The argument is the estimated number of remaining steps.
The handler is unregistered when the enrollment process is over.
handler_step_data: *const u8§handler_func: extern "C" fn(data: *const u8, result: isize, template: *mut u8)Callback when the enrollment process finishes.
This handler is called at most once. The template pointer is allocated by the
scheduler and contains the template ID. Ownership is transferred to the handler.
In case of error (result is negative), the pointer is null.
The handler is unregistered when the enrollment process is over. When called, it is unregistered before being called.
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