pub struct Accounting { /* private fields */ }Expand description
The price sheet and the ledger every call is recorded to — what the router, the shadow classifier and the corpus runner are all given, so no classifier call through them goes unrecorded.
Implementations§
Source§impl Accounting
impl Accounting
Sourcepub fn new(prices: PriceSheet, ledger: Arc<dyn CostLedger>) -> Self
pub fn new(prices: PriceSheet, ledger: Arc<dyn CostLedger>) -> Self
Prices calls off prices and records them to ledger.
Trait Implementations§
Source§impl Clone for Accounting
impl Clone for Accounting
Auto Trait Implementations§
impl !RefUnwindSafe for Accounting
impl !UnwindSafe for Accounting
impl Freeze for Accounting
impl Send for Accounting
impl Sync for Accounting
impl Unpin for Accounting
impl UnsafeUnpin for Accounting
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