pub struct DeviceConfigurationProto {
Show 24 fields pub touch_screen: 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 screen_density: Option<i32>, pub gl_es_version: Option<i32>, pub system_shared_library: Vec<String>, pub system_available_feature: Vec<String>, pub native_platform: Vec<String>, pub screen_width: Option<i32>, pub screen_height: Option<i32>, pub system_supported_locale: Vec<String>, pub gl_extension: Vec<String>, pub device_class: Option<i32>, pub max_apk_download_size_mb: Option<i32>, pub smallest_screen_width_dp: Option<i32>, pub low_ram_device: Option<i32>, pub total_memory_bytes: Option<i64>, pub max_num_of_cpu_cores: Option<i32>, pub device_feature: Vec<DeviceFeature>, pub unknown28: Option<i32>, pub unknown30: Option<i32>,
}

Fields§

§touch_screen: Option<i32>§keyboard: Option<i32>§navigation: Option<i32>§screen_layout: Option<i32>§has_hard_keyboard: Option<bool>§has_five_way_navigation: Option<bool>§screen_density: Option<i32>§gl_es_version: Option<i32>§system_shared_library: Vec<String>§system_available_feature: Vec<String>§native_platform: Vec<String>§screen_width: Option<i32>§screen_height: Option<i32>§system_supported_locale: Vec<String>§gl_extension: Vec<String>§device_class: Option<i32>§max_apk_download_size_mb: Option<i32>§smallest_screen_width_dp: Option<i32>§low_ram_device: Option<i32>§total_memory_bytes: Option<i64>§max_num_of_cpu_cores: Option<i32>§device_feature: Vec<DeviceFeature>§unknown28: Option<i32>§unknown30: Option<i32>

Implementations§

source§

impl DeviceConfigurationProto

source

pub fn touch_screen(&self) -> i32

Returns the value of touch_screen, or the default value if touch_screen is unset.

source

pub fn keyboard(&self) -> i32

Returns the value of keyboard, or the default value if keyboard is unset.

source

pub fn navigation(&self) -> i32

Returns the value of navigation, or the default value if navigation is unset.

source

pub fn screen_layout(&self) -> i32

Returns the value of screen_layout, or the default value if screen_layout is unset.

source

pub fn has_hard_keyboard(&self) -> bool

Returns the value of has_hard_keyboard, or the default value if has_hard_keyboard is unset.

source

pub fn has_five_way_navigation(&self) -> bool

Returns the value of has_five_way_navigation, or the default value if has_five_way_navigation is unset.

source

pub fn screen_density(&self) -> i32

Returns the value of screen_density, or the default value if screen_density is unset.

source

pub fn gl_es_version(&self) -> i32

Returns the value of gl_es_version, or the default value if gl_es_version is unset.

source

pub fn screen_width(&self) -> i32

Returns the value of screen_width, or the default value if screen_width is unset.

source

pub fn screen_height(&self) -> i32

Returns the value of screen_height, or the default value if screen_height is unset.

source

pub fn device_class(&self) -> i32

Returns the value of device_class, or the default value if device_class is unset.

source

pub fn max_apk_download_size_mb(&self) -> i32

Returns the value of max_apk_download_size_mb, or the default value if max_apk_download_size_mb is unset.

source

pub fn smallest_screen_width_dp(&self) -> i32

Returns the value of smallest_screen_width_dp, or the default value if smallest_screen_width_dp is unset.

source

pub fn low_ram_device(&self) -> i32

Returns the value of low_ram_device, or the default value if low_ram_device is unset.

source

pub fn total_memory_bytes(&self) -> i64

Returns the value of total_memory_bytes, or the default value if total_memory_bytes is unset.

source

pub fn max_num_of_cpu_cores(&self) -> i32

Returns the value of max_num_of_cpu_cores, or the default value if max_num_of_cpu_cores is unset.

source

pub fn unknown28(&self) -> i32

Returns the value of unknown28, or the default value if unknown28 is unset.

source

pub fn unknown30(&self) -> i32

Returns the value of unknown30, or the default value if unknown30 is unset.

Trait Implementations§

source§

impl Clone for DeviceConfigurationProto

source§

fn clone(&self) -> DeviceConfigurationProto

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DeviceConfigurationProto

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DeviceConfigurationProto

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Message for DeviceConfigurationProto

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for DeviceConfigurationProto

source§

fn eq(&self, other: &DeviceConfigurationProto) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for DeviceConfigurationProto

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.