Struct g29::controller::Controller
source · pub struct Controller {
pub g29: Arc<Mutex<G29Interface>>,
/* private fields */
}
Expand description
The Controller
struct represents the G29 device and provides methods for controlling and interacting with it.
Fields§
§g29: Arc<Mutex<G29Interface>>
Implementations§
source§impl Controller
impl Controller
sourcepub fn start_pumping(&mut self)
pub fn start_pumping(&mut self)
Starts a thread to continuously read input from the G29 device.
sourcepub fn stop_pumping(&mut self)
pub fn stop_pumping(&mut self)
Stops the reading thread.
Trait Implementations§
Auto Trait Implementations§
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