pub struct Secs;Expand description
Second precision - coarse precision scale.
Uses 1 tick = 1 second. Minimal precision but maximum efficiency and range. Suitable for:
- Long-term rate limiting (hours, days)
- Coarse-grained applications
- Memory-constrained environments
§Overflow Behavior
Can represent durations far beyond practical limits with u64 ticks. Uses consistent branchless overflow handling for uniformity.
Trait Implementations§
impl Copy for Secs
impl Eq for Secs
impl StructuralPartialEq for Secs
Auto Trait Implementations§
impl Freeze for Secs
impl RefUnwindSafe for Secs
impl Send for Secs
impl Sync for Secs
impl Unpin for Secs
impl UnwindSafe for Secs
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