pub struct Options {
pub debug: bool,
pub range: u16,
pub auto_center: [u8; 2],
pub auto_center_enabled: bool,
}
Expand description
The options that can be set when connecting to the G29
- debug:
bool
- Enable debug mode (default:false
) - range:
u16
- The range of the wheel (40 - 900) (default:900
) - auto_center:
[u8; 2]
- The auto center force and turning multiplier (default:[0x07, 0xff]
) - auto_center_enabled:
bool
- Enable auto centering (default:true
)
§Example
use lib_g29Options;
let options = Options {
range: 540,
auto_center_enabled: false,
..Default::default()
};
Fields§
§debug: bool
§range: u16
§auto_center: [u8; 2]
§auto_center_enabled: bool
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more