Enum cacao::filesystem::enums::SearchPathDirectory
source · [−]pub enum SearchPathDirectory {
Show 27 variants
Applications,
DemoApplications,
DeveloperApplications,
AdminApplications,
Library,
Developer,
User,
Documentation,
Documents,
CoreServices,
AutosavedInformation,
Desktop,
Caches,
ApplicationSupport,
Downloads,
InputMethods,
Movies,
Music,
Pictures,
PrinterDescription,
SharedPublic,
PreferencePanes,
ApplicationScripts,
ItemReplacement,
AllApplications,
AllLibraries,
Trash,
}
Expand description
Represents a type of search path to use.
This enum is particularly useful for applications that need to exist both inside and outside of
the sandbox. For example: SearchPathDirectory::Documents
will find the standard Documents
directory outside of the sandbox, but use the sandbox Documents
directory in sandboxed
applications.
Variants
Applications
The applications folder.
DemoApplications
Unsupported applications and demo versions. Not generally used these days.
DeveloperApplications
Developer applications (/Developer/Applications). Not generally used these days.
AdminApplications
System and network admin apps.
Library
User-visible docs, support, and config files.
Developer
Dev resources. (/Developer)
User
User home directories. (/Users)
Documentation
Documentation.
Documents
Documents directory.
CoreServices
Core Services (/System/Library/CoreServices)
AutosavedInformation
User’s autosaved documents (/Library/Autosave Information)
Desktop
The current user’s Desktop directory.
Caches
Discardable cache files. (/Library/Caches)
ApplicationSupport
App support files (/Library/Application Support)
Downloads
The curent user’s Downloads directory.
InputMethods
Input methods (/Library/Input Methods)
Movies
The current user’s Movies directory.
Music
The current user’s Music directory.
Pictures
The current user’s pictures directory.
PrinterDescription
System PPD files (/Library/Printers/PPDs)
SharedPublic
The current user’s public sharing directory.
PreferencePanes
The Preferences Pane directory, where system preferences files live. (/Library/PreferencePanes)
ApplicationScripts
The user scripts folder for the calling application
(~/Library/Application Scripts/
ItemReplacement
Constant used in creating a temp directory.
AllApplications
All directories where apps can be stored.
AllLibraries
All directories where resources can be stored.
Trash
The Trash directory.
Trait Implementations
sourceimpl Clone for SearchPathDirectory
impl Clone for SearchPathDirectory
sourcefn clone(&self) -> SearchPathDirectory
fn clone(&self) -> SearchPathDirectory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SearchPathDirectory
impl Debug for SearchPathDirectory
sourceimpl From<SearchPathDirectory> for NSUInteger
impl From<SearchPathDirectory> for NSUInteger
sourcefn from(directory: SearchPathDirectory) -> Self
fn from(directory: SearchPathDirectory) -> Self
Converts to this type from the input type.
impl Copy for SearchPathDirectory
Auto Trait Implementations
impl RefUnwindSafe for SearchPathDirectory
impl Send for SearchPathDirectory
impl Sync for SearchPathDirectory
impl Unpin for SearchPathDirectory
impl UnwindSafe for SearchPathDirectory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more