pub struct Paths {
pub home: Option<PathBuf>,
pub config_dir: PathBuf,
pub state_dir: PathBuf,
pub cache_dir: PathBuf,
}Fields§
§home: Option<PathBuf>The root given to under (POSTVAK_HOME); None for the platform directories.
config_dir: PathBuf§state_dir: PathBuf§cache_dir: PathBufImplementations§
Source§impl Paths
impl Paths
pub fn discover() -> Result<Paths>
pub fn under(root: &Path) -> Paths
pub fn config_file(&self) -> PathBuf
pub fn rules_file(&self) -> PathBuf
pub fn daemon_socket(&self) -> PathBuf
pub fn daemon_lock(&self) -> PathBuf
pub fn daemon_log(&self) -> PathBuf
pub fn crash_dir(&self) -> PathBuf
pub fn update_check(&self) -> PathBuf
pub fn account_dir(&self, name: &str) -> PathBuf
pub fn mail_db(&self, name: &str) -> PathBuf
pub fn trash_dir(&self, name: &str) -> PathBuf
pub fn ensure_account(&self, name: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paths
impl RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnsafeUnpin for Paths
impl UnwindSafe for Paths
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