pub struct Config<'a> {
pub device_id: Option<&'a str>,
pub initial_status: PortStatus,
pub out_endpoint_options: EndpointOptions,
pub in_endpoint_options: EndpointOptions,
}Expand description
Configuration options for the USB printer device.
Fields§
§device_id: Option<&'a str>IEEE 1284 Device ID string (e.g. "MFG:Generic;MDL:ThermalPrinter;CMD:ESC/POS;CLS:PRINTER;").
initial_status: PortStatusInitial port status byte.
out_endpoint_options: EndpointOptionsOptions for the bulk OUT endpoint, which receives the data the host sends.
in_endpoint_options: EndpointOptionsOptions for the bulk IN endpoint, which sends data to the host.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Config<'a>
impl<'a> Freeze for Config<'a>
impl<'a> Move for Config<'a>
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnsafeUnpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
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