pub struct DeviceConfig {Show 19 fields
pub codename: &'static str,
pub model: &'static str,
pub soc: SocFamily,
pub display_dpi: u32,
pub has_color_screen: bool,
pub has_natural_light: bool,
pub has_bt: bool,
pub has_keys: bool,
pub has_gsensor: bool,
pub has_eclipse_wfm: bool,
pub is_smp: bool,
pub frontlight: FrontlightConfig,
pub battery_sysfs: String,
pub touch_protocol: TouchProtocol,
pub touch_switch_xy: bool,
pub touch_mirrored_x: bool,
pub touch_mirrored_y: bool,
pub standby_state: &'static str,
pub automagic_sysfs: bool,
}Fields§
§codename: &'static str§model: &'static str§soc: SocFamily§display_dpi: u32§has_color_screen: bool§has_natural_light: bool§has_bt: bool§has_keys: bool§has_gsensor: bool§has_eclipse_wfm: bool§is_smp: bool§frontlight: FrontlightConfig§battery_sysfs: String§touch_protocol: TouchProtocol§touch_switch_xy: bool§touch_mirrored_x: bool§touch_mirrored_y: bool§standby_state: &'static str§automagic_sysfs: boolTrait Implementations§
Source§impl Clone for DeviceConfig
impl Clone for DeviceConfig
Source§fn clone(&self) -> DeviceConfig
fn clone(&self) -> DeviceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnsafeUnpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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