pub struct Controller { /* private fields */ }
Implementations§
Source§impl Controller
impl Controller
pub fn new(config: Config) -> Arc<Mutex<Controller>>
pub fn start(controller: &Arc<Mutex<Self>>)
pub fn next(controller: &Arc<Mutex<Self>>)
pub fn stop(controller: &Arc<Mutex<Self>>)
pub fn pause(controller: &Arc<Mutex<Self>>)
pub fn get_current_timer(controller: &Arc<Mutex<Self>>) -> Arc<Mutex<Timer>>
pub fn on( controller: &Arc<Mutex<Self>>, event: TimerEvent, callback: Arc<dyn Fn(&Timer) + Send + Sync>, )
Auto Trait Implementations§
impl Freeze for Controller
impl !RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl !UnwindSafe for Controller
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