pub struct Timer { /* private fields */ }
Implementations
sourceimpl Timer
impl Timer
pub fn new(_: &Core, speed_secs: f64) -> Result<Timer, ()>
pub fn start(&self)
pub fn stop(&self)
pub fn is_started(&self) -> bool
pub fn get_speed(&self) -> f64
pub fn set_speed(&self, speed_secs: f64)
pub fn get_count(&self) -> i64
pub fn set_count(&self, count: i64)
pub fn add_count(&self, diff: i64)
pub fn get_event_source(&self) -> EventSource<'_>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Timer
impl !Send for Timer
impl !Sync for Timer
impl Unpin for Timer
impl UnwindSafe for Timer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more