pub struct SatoWs4Printer(pub SatoPrinter);Tuple Fields§
§0: SatoPrinterImplementations§
Source§impl SatoWs4Printer
impl SatoWs4Printer
pub fn new(config: SatoConfig) -> Self
pub fn from_map(data: HashMap<String, Value>) -> Self
pub fn is_connected(&self) -> bool
pub fn can_print(&self) -> bool
pub fn pending_print_jobs(&self) -> usize
pub fn connect_instruction(&self) -> String
pub fn to_map(&self) -> HashMap<String, Value>
pub fn set_event_handler(&mut self, handler: SharedEventHandler)
pub async fn print(&self, zpl: &str) -> Result<String, String>
Methods from Deref<Target = SatoPrinter>§
pub fn is_connected(&self) -> bool
pub fn can_print(&self) -> bool
pub fn pending_print_jobs(&self) -> usize
pub fn to_map(&self) -> ParamMap
pub fn connect_instruction(&self) -> String
pub async fn connect(&self)
pub async fn close(&self)
pub async fn print(&self, zpl: &str) -> Result<String, String>
pub async fn add_to_print_queue(&self, labels: Vec<String>)
pub async fn process_queue(&self)
Trait Implementations§
Source§impl Clone for SatoWs4Printer
impl Clone for SatoWs4Printer
Source§impl Default for SatoWs4Printer
impl Default for SatoWs4Printer
Auto Trait Implementations§
impl Freeze for SatoWs4Printer
impl !RefUnwindSafe for SatoWs4Printer
impl Send for SatoWs4Printer
impl Sync for SatoWs4Printer
impl Unpin for SatoWs4Printer
impl UnsafeUnpin for SatoWs4Printer
impl !UnwindSafe for SatoWs4Printer
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