pub struct ESSPDevice {
pub client: Box<dyn ESSPClient + 'static>,
pub address: SlaveID,
pub currency: String,
pub scaling_factor: u32,
/* private fields */
}Fields§
§client: Box<dyn ESSPClient + 'static>§address: SlaveID§currency: String§scaling_factor: u32Implementations§
Source§impl ESSPDevice
impl ESSPDevice
pub fn new( port_name: &String, serial_settings: &PortSettings, address: SlaveID, enc_key_fixed: InterKey, currency: &str, scaling_factor: u32, mock: bool, ) -> Result<ESSPDevice, ClientError>
pub fn set_poll_events(&mut self, poll_events: Vec<PollEvent>)
pub fn send_and_check_reply( &mut self, msg: &Message, ) -> Result<Payload, ClientError>
pub fn send(&mut self, msg: &Message) -> Result<bool, ClientError>
pub fn create_message(&mut self, payload: Payload) -> Message
pub fn sync(&mut self) -> Result<Payload, ClientError>
pub fn reset(&mut self) -> Result<Payload, ClientError>
pub fn host_protocol_version( &mut self, version: u8, ) -> Result<Payload, ClientError>
pub fn poll(&mut self) -> Result<Payload, ClientError>
pub fn get_serial_number( &mut self, encrypted: bool, ) -> Result<Payload, ClientError>
pub fn disable(&mut self) -> Result<Payload, ClientError>
pub fn enable(&mut self) -> Result<Payload, ClientError>
pub fn event_ack(&mut self) -> Result<Payload, ClientError>
pub fn payout_amount( &mut self, amount: u32, country_code: &str, test: bool, ) -> Result<Payload, ClientError>
pub fn set_denomination_level( &mut self, coin_data: CoinNumValue, ) -> Result<Payload, ClientError>
pub fn float_amount( &mut self, minimum_payout: u16, payout_value: u32, country_code: String, test: bool, ) -> Result<Payload, ClientError>
pub fn get_min_payout(&mut self) -> Result<u32, ClientError>
pub fn set_coin_mech_inhibit( &mut self, enabled: bool, coin_value: u16, ) -> Result<Payload, ClientError>
pub fn float_by_denomination( &mut self, denom_vec: Vec<CoinNumValue>, test: bool, ) -> Result<Payload, ClientError>
pub fn empty_all(&mut self) -> Result<Payload, ClientError>
pub fn set_options( &mut self, reg0: u8, reg1: u8, ) -> Result<Payload, ClientError>
pub fn get_options(&mut self) -> Result<Payload, ClientError>
pub fn coin_mech_global_inhibit( &mut self, enabled: bool, ) -> Result<Payload, ClientError>
pub fn smart_empty(&mut self) -> Result<Payload, ClientError>
pub fn cashbox_payout_operation_data( &mut self, ) -> Result<CashboxPayoutData, ClientError>
pub fn get_all_levels(&mut self) -> Result<Vec<CoinNumValue>, ClientError>
pub fn set_generator(&mut self) -> Result<Payload, ClientError>
pub fn set_modulus(&mut self) -> Result<Payload, ClientError>
pub fn request_key_exchange(&mut self) -> Result<Payload, ClientError>
pub fn set_cashbox_payout_limit( &mut self, denom_vec: &Vec<CoinNumValue>, ) -> Result<Payload, ClientError>
pub fn set_inhibits( &mut self, channels: [u8; 2], ) -> Result<Payload, ClientError>
pub fn get_all_levels_sum(&mut self) -> Result<u32, ClientError>
pub fn float_separately( &mut self, float_levels: &Vec<CoinNumValue>, test: bool, ) -> bool
pub fn set_auto_float_levels( &mut self, float_levels: &Vec<CoinNumValue>, ) -> Result<Payload, ClientError>
Auto Trait Implementations§
impl Freeze for ESSPDevice
impl !RefUnwindSafe for ESSPDevice
impl !Send for ESSPDevice
impl !Sync for ESSPDevice
impl Unpin for ESSPDevice
impl !UnwindSafe for ESSPDevice
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more