Device

Struct Device 

Source
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>§navigation: Option<i32>§screen_layout: Option<i32>§has_hard_keyboard: Option<bool>§has_five_way_navigation: Option<bool>§shared_libraries: Cow<'static, [Cow<'static, str>]>§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

Source

pub fn with_architectures(self, architectures: &[&str]) -> Self

Source

pub fn with_density(self, density: i32) -> Self

Trait Implementations§

Source§

impl Clone for Device

Source§

fn clone(&self) -> Device

Returns a duplicate 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 Device

Source§

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

Formats the value using the given formatter. Read more

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> 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

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

Source§

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>,

Source§

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>,

Source§

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more