Opening connection code:
let printer_details = PrinterProfile::usb_builder(0x0483, 0x5743)
.with_endpoint(0x01)
.unwrap()
.build();
Error:
Error: rusb error: Access denied (insufficient permissions)
Problem: The printer is owned by group lp
and you need current user to be in that group.