pub struct StampTimer<T> {
pub val: T,
/* private fields */
}
Fields§
§val: T
Implementations§
Source§impl<T> StampTimer<T>
impl<T> StampTimer<T>
pub fn new(val: T, duration: Duration) -> Self
pub fn new_second(val: T, duration: Duration) -> Self
pub fn new_millis(val: T, duration: Duration) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for StampTimer<T>where
T: Freeze,
impl<T> RefUnwindSafe for StampTimer<T>where
T: RefUnwindSafe,
impl<T> Send for StampTimer<T>where
T: Send,
impl<T> Sync for StampTimer<T>where
T: Sync,
impl<T> Unpin for StampTimer<T>where
T: Unpin,
impl<T> UnwindSafe for StampTimer<T>where
T: UnwindSafe,
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