#[repr(C)]pub struct CashUnit { /* private fields */ }
Expand description
Represents a cash unit in a BNR device.
Describes the entire set of LogicalCashUnits and PhysicalCashUnits present on a device.
Implementations§
Source§impl CashUnit
impl CashUnit
Sourcepub const fn transport_count(&self) -> u32
pub const fn transport_count(&self) -> u32
Gets the TransportCount.
Sourcepub fn set_transport_count(&mut self, count: u32)
pub fn set_transport_count(&mut self, count: u32)
Sets the TransportCount.
Sourcepub fn with_transport_count(self, count: u32) -> Self
pub fn with_transport_count(self, count: u32) -> Self
Builder function that sets the TransportCount.
Sourcepub const fn logical_cash_unit_list(&self) -> &LogicalCashUnitList
pub const fn logical_cash_unit_list(&self) -> &LogicalCashUnitList
Gets a reference to the LogicalCashUnitList.
Sourcepub fn logical_cash_unit_list_mut(&mut self) -> &mut LogicalCashUnitList
pub fn logical_cash_unit_list_mut(&mut self) -> &mut LogicalCashUnitList
Gets a mutable reference to the LogicalCashUnitList.
Sourcepub fn set_logical_cash_unit_list(&mut self, lcu: LogicalCashUnitList)
pub fn set_logical_cash_unit_list(&mut self, lcu: LogicalCashUnitList)
Sets the LogicalCashUnitList.
Sourcepub fn with_logical_cash_unit_list(self, lcu: LogicalCashUnitList) -> Self
pub fn with_logical_cash_unit_list(self, lcu: LogicalCashUnitList) -> Self
Builder function that sets the LogicalCashUnitList.
Sourcepub const fn physical_cash_unit_list(&self) -> &PhysicalCashUnitList
pub const fn physical_cash_unit_list(&self) -> &PhysicalCashUnitList
Gets a reference to the PhysicalCashUnitList.
Sourcepub fn set_physical_cash_unit_list(&mut self, pcu: PhysicalCashUnitList)
pub fn set_physical_cash_unit_list(&mut self, pcu: PhysicalCashUnitList)
Sets the PhysicalCashUnitList.
Sourcepub fn with_physical_cash_unit_list(self, pcu: PhysicalCashUnitList) -> Self
pub fn with_physical_cash_unit_list(self, pcu: PhysicalCashUnitList) -> Self
Builder function that sets the PhysicalCashUnitList.
Sourcepub fn into_lists(self) -> (LogicalCashUnitList, PhysicalCashUnitList)
pub fn into_lists(self) -> (LogicalCashUnitList, PhysicalCashUnitList)
Deconstructs the CashUnit into a LogicalCashUnitList and PhysicalCashUnitList.
Trait Implementations§
Source§impl TryFrom<&XfsMethodResponse> for CashUnit
impl TryFrom<&XfsMethodResponse> for CashUnit
Source§impl TryFrom<XfsMethodResponse> for CashUnit
impl TryFrom<XfsMethodResponse> for CashUnit
impl StructuralPartialEq for CashUnit
Auto Trait Implementations§
impl Freeze for CashUnit
impl RefUnwindSafe for CashUnit
impl Send for CashUnit
impl Sync for CashUnit
impl Unpin for CashUnit
impl UnwindSafe for CashUnit
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