pub enum EmapiReport {
PrintResult {
command: EmapiCommand,
result: u8,
},
PrinterStatus {
command: EmapiCommand,
paper_status: Option<u8>,
cover_status: Option<u8>,
battery_state: Option<u8>,
overheat: Option<u8>,
nfc_paper_recognition: Option<u8>,
},
FlowControl {
command: EmapiCommand,
state: u8,
},
UpgradeStatus {
command: EmapiCommand,
status: u8,
},
BluetoothConnection {
command: EmapiCommand,
state: u8,
},
WifiConfigStatus {
command: EmapiCommand,
ssid: Option<String>,
state: Option<u8>,
},
Unknown {
command: EmapiCommand,
},
}Variants§
PrintResult
PrinterStatus
Fields
§
command: EmapiCommandFlowControl
UpgradeStatus
BluetoothConnection
WifiConfigStatus
Unknown
Fields
§
command: EmapiCommandImplementations§
Source§impl EmapiReport
impl EmapiReport
pub fn command(&self) -> &EmapiCommand
pub fn is_flow_busy(&self) -> bool
Trait Implementations§
Source§impl Clone for EmapiReport
impl Clone for EmapiReport
Source§fn clone(&self) -> EmapiReport
fn clone(&self) -> EmapiReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmapiReport
impl Debug for EmapiReport
impl Eq for EmapiReport
Source§impl PartialEq for EmapiReport
impl PartialEq for EmapiReport
Source§fn eq(&self, other: &EmapiReport) -> bool
fn eq(&self, other: &EmapiReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmapiReport
Auto Trait Implementations§
impl Freeze for EmapiReport
impl RefUnwindSafe for EmapiReport
impl Send for EmapiReport
impl Sync for EmapiReport
impl Unpin for EmapiReport
impl UnsafeUnpin for EmapiReport
impl UnwindSafe for EmapiReport
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