#[non_exhaustive]pub enum PublicAudioDir {
Music,
Alarms,
Audiobooks,
Notifications,
Podcasts,
Ringtones,
Recordings,
}
Expand description
Directory in which to place audios that are available to other applications and users.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Music
Standard directory in which to place movies that are available to the user.
ex: ~/Music
Alarms
Standard directory in which to place any audio files that should be in the list of alarms that the user can select (not as regular music).
ex: ~/Alarms
Audiobooks
Standard directory in which to place any audio files that should be in the list of audiobooks that the user can select (not as regular music).
This is not available on Android 9 (API level 28) and lower.
ex: ~/Audiobooks
Notifications
Standard directory in which to place any audio files that should be in the list of notifications that the user can select (not as regular music).
ex: ~/Notifications
Podcasts
Standard directory in which to place any audio files that should be in the list of podcasts that the user can select (not as regular music).
ex: ~/Podcasts
Ringtones
Standard directory in which to place any audio files that should be in the list of ringtones that the user can select (not as regular music).
ex: ~/Ringtones
Recordings
Standard directory in which to place any audio files that should be in the list of voice recordings recorded by voice recorder apps that the user can select (not as regular music).
This is not available on Android 11 (API level 30) and lower.
ex: ~/Recordings
Trait Implementations§
Source§impl Clone for PublicAudioDir
impl Clone for PublicAudioDir
Source§fn clone(&self) -> PublicAudioDir
fn clone(&self) -> PublicAudioDir
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PublicAudioDir
impl Debug for PublicAudioDir
Source§impl<'de> Deserialize<'de> for PublicAudioDir
impl<'de> Deserialize<'de> for PublicAudioDir
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>,
Source§impl Display for PublicAudioDir
impl Display for PublicAudioDir
Source§impl From<PublicAudioDir> for PublicDir
impl From<PublicAudioDir> for PublicDir
Source§fn from(value: PublicAudioDir) -> Self
fn from(value: PublicAudioDir) -> Self
Source§impl Hash for PublicAudioDir
impl Hash for PublicAudioDir
Source§impl PartialEq for PublicAudioDir
impl PartialEq for PublicAudioDir
Source§impl Serialize for PublicAudioDir
impl Serialize for PublicAudioDir
impl Copy for PublicAudioDir
impl Eq for PublicAudioDir
impl StructuralPartialEq for PublicAudioDir
Auto Trait Implementations§
impl Freeze for PublicAudioDir
impl RefUnwindSafe for PublicAudioDir
impl Send for PublicAudioDir
impl Sync for PublicAudioDir
impl Unpin for PublicAudioDir
impl UnwindSafe for PublicAudioDir
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.