pub fn consume_with_threshold(
        &mut self,
        cycles: Cycles,
        threshold: Cycles,
    ) -> Result<(), CyclesAccountError> {
        self.withdraw_with_threshold(cycles, threshold).map(|()| {
            self.consumed_cycles_since_replica_started += NominalCycles::from_cycles(cycles)
        })
    }
/// Subtracts and consumes the cycles. This call should be used when the
/// cycles are not being sent somewhere else.
Subtracts and consumes the cycles. This call should be used when the
cycles are not being sent somewhere else.
Subtracts and consumes the cycles . This call should be used when the cycles are not being sent somewhere else .
pub fn consume_with_threshold(
        &mut self,
        cycles: Cycles,
        threshold: Cycles,
    ) -> Result<(), CyclesAccountError> {
        self.withdraw_with_threshold(cycles, threshold).map(|()| {
            self.consumed_cycles_since_replica_started += NominalCycles::from_cycles(cycles)
        })
    }
pub fn consume_with_threshold ( & mut self , cycles : Cycles , threshold : Cycles , ) -> Result < ( ) , CyclesAccountError > { self . withdraw_with_threshold ( cycles , threshold ) . map ( | ( ) | { self . consumed_cycles_since_replica_started += NominalCycles :: from_cycles ( cycles ) } ) }
Subtracts and consumes the cycles.
Subtracts and consumes the cycles .
&mut self
cycles
Cycles
threshold
Cycles
&mut self
cycles
Cycles
threshold
Cycles