pub enum Lasts<'a> {
RunsOut {
limit: &'a Window,
in_seconds: i64,
},
UntilReset {
in_seconds: i64,
},
}Expand description
How long an account lasts, from its limits.
Variants§
RunsOut
This limit runs out first, at its pace, this many seconds from now.
UntilReset
No limit runs out before it resets, and the first reset is this many seconds from now.
Implementations§
Trait Implementations§
impl<'a> Copy for Lasts<'a>
impl<'a> StructuralPartialEq for Lasts<'a>
Auto Trait Implementations§
impl<'a> Freeze for Lasts<'a>
impl<'a> RefUnwindSafe for Lasts<'a>
impl<'a> Send for Lasts<'a>
impl<'a> Sync for Lasts<'a>
impl<'a> Unpin for Lasts<'a>
impl<'a> UnsafeUnpin for Lasts<'a>
impl<'a> UnwindSafe for Lasts<'a>
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