pub struct BudgetReplenishCommand { /* private fields */ }Expand description
Semantic command for budget replenishment mutation.
Implementations§
Source§impl BudgetReplenishCommand
impl BudgetReplenishCommand
Sourcepub fn new(
sequence: u64,
task_id: TaskId,
dimension: BudgetDimension,
new_limit: u64,
timestamp: u64,
) -> Self
pub fn new( sequence: u64, task_id: TaskId, dimension: BudgetDimension, new_limit: u64, timestamp: u64, ) -> Self
Creates a new budget-replenish command.
Sourcepub fn dimension(&self) -> BudgetDimension
pub fn dimension(&self) -> BudgetDimension
Returns the budget dimension.
Trait Implementations§
Source§impl Clone for BudgetReplenishCommand
impl Clone for BudgetReplenishCommand
Source§fn clone(&self) -> BudgetReplenishCommand
fn clone(&self) -> BudgetReplenishCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BudgetReplenishCommand
impl Debug for BudgetReplenishCommand
Source§impl PartialEq for BudgetReplenishCommand
impl PartialEq for BudgetReplenishCommand
impl Copy for BudgetReplenishCommand
impl Eq for BudgetReplenishCommand
impl StructuralPartialEq for BudgetReplenishCommand
Auto Trait Implementations§
impl Freeze for BudgetReplenishCommand
impl RefUnwindSafe for BudgetReplenishCommand
impl Send for BudgetReplenishCommand
impl Sync for BudgetReplenishCommand
impl Unpin for BudgetReplenishCommand
impl UnsafeUnpin for BudgetReplenishCommand
impl UnwindSafe for BudgetReplenishCommand
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