pub struct StopwatchStruct<T>{
pub current_time: u32,
pub status: StopwatchStatus,
pub operation_on_stop: T,
}Fields§
§current_time: u32§status: StopwatchStatus§operation_on_stop: TImplementations§
Source§impl<T> StopwatchStruct<T>
impl<T> StopwatchStruct<T>
pub fn new(operation_on_stop: T) -> StopwatchStruct<T>
pub fn start_timer<W: Write>(&mut self, writer: &mut W)
Trait Implementations§
Source§impl<T> Clone for StopwatchStruct<T>
impl<T> Clone for StopwatchStruct<T>
Source§fn clone(&self) -> StopwatchStruct<T>
fn clone(&self) -> StopwatchStruct<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for StopwatchStruct<T>where
T: Freeze,
impl<T> RefUnwindSafe for StopwatchStruct<T>where
T: RefUnwindSafe,
impl<T> Send for StopwatchStruct<T>where
T: Send,
impl<T> Sync for StopwatchStruct<T>where
T: Sync,
impl<T> Unpin for StopwatchStruct<T>where
T: Unpin,
impl<T> UnwindSafe for StopwatchStruct<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