pub struct Device {Show 34 fields
pub build_id: Cow<'static, str>,
pub build_version_release: Cow<'static, str>,
pub build_fingerprint: Option<Cow<'static, str>>,
pub build_hardware: Option<Cow<'static, str>>,
pub build_brand: Option<Cow<'static, str>>,
pub build_radio: Option<Cow<'static, str>>,
pub build_bootloader: Option<Cow<'static, str>>,
pub build_device: Option<Cow<'static, str>>,
pub build_version_sdk_int: Option<i32>,
pub build_model: Option<Cow<'static, str>>,
pub build_manufacturer: Option<Cow<'static, str>>,
pub build_product: Option<Cow<'static, str>>,
pub vending_version_string: Cow<'static, str>,
pub vending_version: Cow<'static, str>,
pub gsf_version: Option<i32>,
pub client: Option<Cow<'static, str>>,
pub cell_operator: Option<Cow<'static, str>>,
pub sim_operator: Option<Cow<'static, str>>,
pub roaming: Option<Cow<'static, str>>,
pub touchscreen: Option<i32>,
pub keyboard: Option<i32>,
pub navigation: Option<i32>,
pub screen_layout: Option<i32>,
pub has_hard_keyboard: Option<bool>,
pub has_five_way_navigation: Option<bool>,
pub shared_libraries: Cow<'static, [Cow<'static, str>]>,
pub features: Cow<'static, [Cow<'static, str>]>,
pub platforms: Cow<'static, [Cow<'static, str>]>,
pub locales: Cow<'static, [Cow<'static, str>]>,
pub screen_density: Option<i32>,
pub screen_width: Option<i32>,
pub screen_height: Option<i32>,
pub gl_version: Option<i32>,
pub gl_extensions: Cow<'static, [Cow<'static, str>]>,
}Fields§
§build_id: Cow<'static, str>§build_version_release: Cow<'static, str>§build_fingerprint: Option<Cow<'static, str>>§build_hardware: Option<Cow<'static, str>>§build_brand: Option<Cow<'static, str>>§build_radio: Option<Cow<'static, str>>§build_bootloader: Option<Cow<'static, str>>§build_device: Option<Cow<'static, str>>§build_version_sdk_int: Option<i32>§build_model: Option<Cow<'static, str>>§build_manufacturer: Option<Cow<'static, str>>§build_product: Option<Cow<'static, str>>§vending_version_string: Cow<'static, str>§vending_version: Cow<'static, str>§gsf_version: Option<i32>§client: Option<Cow<'static, str>>§cell_operator: Option<Cow<'static, str>>§sim_operator: Option<Cow<'static, str>>§roaming: Option<Cow<'static, str>>§touchscreen: Option<i32>§keyboard: Option<i32>§screen_layout: Option<i32>§has_hard_keyboard: Option<bool>§features: Cow<'static, [Cow<'static, str>]>§platforms: Cow<'static, [Cow<'static, str>]>§locales: Cow<'static, [Cow<'static, str>]>§screen_density: Option<i32>§screen_width: Option<i32>§screen_height: Option<i32>§gl_version: Option<i32>§gl_extensions: Cow<'static, [Cow<'static, str>]>Implementations§
Source§impl Device
impl Device
pub fn with_architectures(self, architectures: &[&str]) -> Self
pub fn with_density(self, density: i32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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