pub struct AppPaths { /* private fields */ }Expand description
Where one app keeps its files, the same API on every target.
Implementations§
Source§impl AppPaths
impl AppPaths
pub fn for_app(id: &str) -> Self
pub fn under(root: impl Into<PathBuf>, id: &str) -> Self
pub fn memory(id: &str) -> Self
Sourcepub fn with_profile(self, profile: &str) -> Self
pub fn with_profile(self, profile: &str) -> Self
Keep web storage in profile’s tree; native per-user directories belong to one
profile already.
pub fn id(&self) -> &str
pub fn data(&self) -> Location
pub fn config(&self) -> Location
pub fn cache(&self) -> Location
pub fn state(&self) -> Location
pub fn runtime(&self) -> Result<Location, Unsupported>
pub fn user_dir(&self, dir: UserDir) -> Result<Location, Unsupported>
Sourcepub fn workspace_root(&self) -> Result<Location, Unsupported>
pub fn workspace_root(&self) -> Result<Location, Unsupported>
The collaborative workspace the host mounted for this app:
$TILO_WORKSPACE_ROOT when absolute, else /var/workspace on a Tilo
Linux session ($TILO_WORKSPACE_ID set).
Sourcepub fn font_root(&self) -> Result<Location, Unsupported>
pub fn font_root(&self) -> Result<Location, Unsupported>
The directory holding the Tilo font catalog: where the OS image
installs it on Linux, the app bundle’s Contents/Resources/fonts on
macOS. Only the location is resolved; readers verify what they use.
Trait Implementations§
impl Eq for AppPaths
impl StructuralPartialEq for AppPaths
Auto Trait Implementations§
impl Forget for AppPaths
impl Freeze for AppPaths
impl Move for AppPaths
impl RefUnwindSafe for AppPaths
impl Send for AppPaths
impl Sync for AppPaths
impl Unpin for AppPaths
impl UnsafeUnpin for AppPaths
impl UnwindSafe for AppPaths
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