pub enum PrinterModel {
ZKTeco,
TMT20,
}
Expand description
Printers known to this library
Probably needs updates. If you know one that is not in the list, send them to the author through email to be considered in future updates.
Variants§
Implementations§
Source§impl PrinterModel
impl PrinterModel
Sourcepub fn vp_id(&self) -> (u16, u16, Option<u8>)
pub fn vp_id(&self) -> (u16, u16, Option<u8>)
Get the vendor, product id and endpoint of the current model
Sourcepub fn usb_profile(&self) -> PrinterProfile
pub fn usb_profile(&self) -> PrinterProfile
Obtain the details to connect to a printer model through usb
Auto Trait Implementations§
impl Freeze for PrinterModel
impl RefUnwindSafe for PrinterModel
impl Send for PrinterModel
impl Sync for PrinterModel
impl Unpin for PrinterModel
impl UnwindSafe for PrinterModel
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more