pub struct AccountingSystem { /* private fields */ }
Implementations§
Source§impl AccountingSystem
impl AccountingSystem
pub fn new() -> Self
Sourcepub fn run_operation(
&mut self,
operation: AccountingOperation,
) -> Result<(), TransactionError>
pub fn run_operation( &mut self, operation: AccountingOperation, ) -> Result<(), TransactionError>
Runs a transaction over the existing accounting system state.
§Errors
For especific errors see TransactionError
.
Sourcepub fn iter_accounts(&self) -> impl Iterator<Item = &ClientAccount>
pub fn iter_accounts(&self) -> impl Iterator<Item = &ClientAccount>
Iterates over all currently tracked client accounts.
Trait Implementations§
Source§impl Debug for AccountingSystem
impl Debug for AccountingSystem
Auto Trait Implementations§
impl Freeze for AccountingSystem
impl RefUnwindSafe for AccountingSystem
impl Send for AccountingSystem
impl Sync for AccountingSystem
impl Unpin for AccountingSystem
impl UnwindSafe for AccountingSystem
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