[][src]Struct fprint_rs::PrintData

pub struct PrintData(_);

Methods

impl PrintData[src]

pub fn new() -> Self[src]

pub fn with_data(data: *mut fp_print_data) -> Self[src]

pub fn save_to_disk(&self, finger: Finger) -> Result<()>[src]

Saves a stored print to disk, assigned to a specific finger. Even though you are limited to storing only the 10 human fingers, this is a per-device-type limit. For example, you can store the users right index finger from a DigitalPersona scanner, and you can also save the right index finger from a UPEK scanner. When you later come to load the print, the right one will be automatically selected.

This function will unconditionally overwrite a fingerprint previously saved for the same finger and device type. The print is saved in a hidden directory beneath the current user's home directory.

pub fn get_data(&self) -> Result<Location>[src]

Convert a stored print into a unified representation inside a data buffer. You can then store this data buffer in any way that suits you, and load it back at some later time using PrintData::from_data() (or PrintData::try_from(Location)).

pub fn from_data(data: Location) -> Result<Self>[src]

Load a stored print from a data buffer. The contents of said buffer must be the untouched contents of a buffer previously supplied to you by the PrintData::get_data().

pub fn get_driver_id(&self) -> u16[src]

Gets the driver ID for a stored print. The driver ID indicates which driver the print originally came from. The print is only usable with a device controlled by that driver.

pub fn get_devtype(&self) -> u32[src]

Gets the devtype for a stored print. The devtype represents which type of device under the parent driver is compatible with the print.

Trait Implementations

impl Drop for PrintData[src]

impl Default for PrintData[src]

impl Debug for PrintData[src]

impl TryFrom<Location> for PrintData[src]

type Error = FPrintError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl !Send for PrintData

impl !Sync for PrintData

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.