pub struct Ecr17Config {Show 14 fields
pub host: String,
pub port: Option<u16>,
pub terminal_id: String,
pub cash_register_id: String,
pub lrc_mode: Option<LrcMode>,
pub keep_alive: Option<bool>,
pub auto_reconnect: Option<bool>,
pub connection_timeout_ms: Option<u32>,
pub response_timeout_ms: Option<u32>,
pub ack_timeout_ms: Option<u32>,
pub receipt_drain_ms: Option<u32>,
pub retry_count: Option<u32>,
pub retry_delay_ms: Option<u32>,
pub debug: Option<bool>,
}Expand description
Client/session configuration.
Fields§
§host: StringPOS terminal host (IP address).
port: Option<u16>TCP port (terminal default when omitted).
terminal_id: StringTerminal identifier (max 8 chars).
cash_register_id: StringCash-register identifier (max 8 chars).
lrc_mode: Option<LrcMode>LRC framing mode.
keep_alive: Option<bool>Keep the socket open between transactions.
auto_reconnect: Option<bool>Reconnect automatically on a mid-session drop (financial ops are still never
blindly replayed — recover via send_last_result).
connection_timeout_ms: Option<u32>Connection timeout (ms).
response_timeout_ms: Option<u32>Application-response timeout (ms).
ack_timeout_ms: Option<u32>ACK timeout (ms).
receipt_drain_ms: Option<u32>After a transaction result, keep forwarding S receipt lines until this many ms
of silence. 0/None = off. Set when ECR-printing is on.
retry_count: Option<u32>Retransmission attempts on ACK timeout / NAK.
retry_delay_ms: Option<u32>Delay between retransmissions (ms).
debug: Option<bool>Verbose debug logging.
Trait Implementations§
Source§impl Clone for Ecr17Config
impl Clone for Ecr17Config
Source§fn clone(&self) -> Ecr17Config
fn clone(&self) -> Ecr17Config
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 Ecr17Config
impl Debug for Ecr17Config
Source§impl<'de> Deserialize<'de> for Ecr17Config
impl<'de> Deserialize<'de> for Ecr17Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Ecr17Config
Source§impl PartialEq for Ecr17Config
impl PartialEq for Ecr17Config
Source§impl Serialize for Ecr17Config
impl Serialize for Ecr17Config
impl StructuralPartialEq for Ecr17Config
Auto Trait Implementations§
impl Freeze for Ecr17Config
impl RefUnwindSafe for Ecr17Config
impl Send for Ecr17Config
impl Sync for Ecr17Config
impl Unpin for Ecr17Config
impl UnsafeUnpin for Ecr17Config
impl UnwindSafe for Ecr17Config
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