pub struct Usage { /* private fields */ }Expand description
The counter file and the limits.
Implementations§
Source§impl Usage
impl Usage
Sourcepub fn new(state_dir: Option<&Path>, plan_daily_limit: u32) -> Self
pub fn new(state_dir: Option<&Path>, plan_daily_limit: u32) -> Self
The counter usage.json in state_dir, else in the temporary
directory.
pub fn path(&self) -> &Path
Trait Implementations§
Auto Trait Implementations§
impl Forget for Usage
impl Freeze for Usage
impl Move for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
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