pub enum ForegroundServiceType {
Camera,
ConnectedDevice,
DataSync,
Location,
MediaPlayback,
MediaProjection,
Microphone,
PhoneCall,
}
Variants§
Trait Implementations§
source§impl Clone for ForegroundServiceType
impl Clone for ForegroundServiceType
source§fn clone(&self) -> ForegroundServiceType
fn clone(&self) -> ForegroundServiceType
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 ForegroundServiceType
impl Debug for ForegroundServiceType
source§impl Default for ForegroundServiceType
impl Default for ForegroundServiceType
source§fn default() -> ForegroundServiceType
fn default() -> ForegroundServiceType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ForegroundServiceType
impl<'de> Deserialize<'de> for ForegroundServiceType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ForegroundServiceType> for ForegroundServiceType
impl PartialEq<ForegroundServiceType> for ForegroundServiceType
source§fn eq(&self, other: &ForegroundServiceType) -> bool
fn eq(&self, other: &ForegroundServiceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ForegroundServiceType
impl Serialize for ForegroundServiceType
source§impl YaDeserialize for ForegroundServiceType
impl YaDeserialize for ForegroundServiceType
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
source§impl YaSerialize for ForegroundServiceType
impl YaSerialize for ForegroundServiceType
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl Eq for ForegroundServiceType
impl StructuralEq for ForegroundServiceType
impl StructuralPartialEq for ForegroundServiceType
Auto Trait Implementations§
impl RefUnwindSafe for ForegroundServiceType
impl Send for ForegroundServiceType
impl Sync for ForegroundServiceType
impl Unpin for ForegroundServiceType
impl UnwindSafe for ForegroundServiceType
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