#[repr(i32)]pub enum ChromeApplicationState {
ApplicationStateUnknown = 0,
ApplicationStateHasRunningActivities = 1,
ApplicationStateHasPausedActivities = 2,
ApplicationStateHasStoppedActivities = 3,
ApplicationStateHasDestroyedActivities = 4,
}
Expand description
Enum definition taken from: https://source.chromium.org/chromium/chromium/src/+/master:base/android/application_status_listener.h
Variants§
ApplicationStateUnknown = 0
ApplicationStateHasRunningActivities = 1
ApplicationStateHasPausedActivities = 2
ApplicationStateHasStoppedActivities = 3
ApplicationStateHasDestroyedActivities = 4
Implementations§
Source§impl ChromeApplicationState
impl ChromeApplicationState
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ChromeApplicationState
.
Sourcepub fn from_i32(value: i32) -> Option<ChromeApplicationState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ChromeApplicationState>
Converts an i32
to a ChromeApplicationState
, or None
if value
is not a valid variant.
Source§impl ChromeApplicationState
impl ChromeApplicationState
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ChromeApplicationState
impl Clone for ChromeApplicationState
Source§fn clone(&self) -> ChromeApplicationState
fn clone(&self) -> ChromeApplicationState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChromeApplicationState
impl Debug for ChromeApplicationState
Source§impl Default for ChromeApplicationState
impl Default for ChromeApplicationState
Source§fn default() -> ChromeApplicationState
fn default() -> ChromeApplicationState
Returns the “default value” for a type. Read more
Source§impl From<ChromeApplicationState> for i32
impl From<ChromeApplicationState> for i32
Source§fn from(value: ChromeApplicationState) -> i32
fn from(value: ChromeApplicationState) -> i32
Converts to this type from the input type.
Source§impl Hash for ChromeApplicationState
impl Hash for ChromeApplicationState
Source§impl Ord for ChromeApplicationState
impl Ord for ChromeApplicationState
Source§fn cmp(&self, other: &ChromeApplicationState) -> Ordering
fn cmp(&self, other: &ChromeApplicationState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChromeApplicationState
impl PartialEq for ChromeApplicationState
Source§impl PartialOrd for ChromeApplicationState
impl PartialOrd for ChromeApplicationState
Source§impl TryFrom<i32> for ChromeApplicationState
impl TryFrom<i32> for ChromeApplicationState
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ChromeApplicationState, DecodeError>
fn try_from(value: i32) -> Result<ChromeApplicationState, DecodeError>
Performs the conversion.
impl Copy for ChromeApplicationState
impl Eq for ChromeApplicationState
impl StructuralPartialEq for ChromeApplicationState
Auto Trait Implementations§
impl Freeze for ChromeApplicationState
impl RefUnwindSafe for ChromeApplicationState
impl Send for ChromeApplicationState
impl Sync for ChromeApplicationState
impl Unpin for ChromeApplicationState
impl UnwindSafe for ChromeApplicationState
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