pub struct PrinterInfo {
pub interface: u8,
pub protocol: u8,
pub bulk_out_ep: u8,
pub bulk_out_mps: u16,
pub bulk_in_ep: Option<u8>,
pub bulk_in_mps: Option<u16>,
}Expand description
Descriptor-located info for a USB printer.
Fields§
§interface: u8USB interface number.
protocol: u8Interface protocol (1 = unidirectional, 2 = bidirectional).
bulk_out_ep: u8Bulk OUT endpoint address.
bulk_out_mps: u16Bulk OUT max packet size.
bulk_in_ep: Option<u8>Optional Bulk IN endpoint address (for bidirectional printers).
bulk_in_mps: Option<u16>Optional Bulk IN max packet size.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PrinterInfo
impl Freeze for PrinterInfo
impl Move for PrinterInfo
impl RefUnwindSafe for PrinterInfo
impl Send for PrinterInfo
impl Sync for PrinterInfo
impl Unpin for PrinterInfo
impl UnsafeUnpin for PrinterInfo
impl UnwindSafe for PrinterInfo
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