pub struct LauncherPaths {
pub server_cache: DownloadCache,
pub cli_cache: DownloadCache,
/* private fields */
}
Fields§
§server_cache: DownloadCache
§cli_cache: DownloadCache
Implementations§
Source§impl LauncherPaths
impl LauncherPaths
Sourcepub fn migrate(root: Option<String>) -> Result<LauncherPaths, AnyError>
pub fn migrate(root: Option<String>) -> Result<LauncherPaths, AnyError>
todo@conno4312: temporary migration from the old CLI data directory
pub fn new(root: Option<String>) -> Result<LauncherPaths, AnyError>
pub fn new_without_replacements(root: PathBuf) -> LauncherPaths
Sourcepub fn tunnel_lockfile(&self) -> PathBuf
pub fn tunnel_lockfile(&self) -> PathBuf
Lockfile for the running tunnel
Sourcepub fn forwarding_lockfile(&self) -> PathBuf
pub fn forwarding_lockfile(&self) -> PathBuf
Lockfile for port forwarding
Sourcepub fn service_log_file(&self) -> PathBuf
pub fn service_log_file(&self) -> PathBuf
Suggested path for tunnel service logs, when using file logs
Sourcepub fn remove(&self) -> Result<(), WrappedError>
pub fn remove(&self) -> Result<(), WrappedError>
Removes the launcher data directory.
Sourcepub fn web_server_storage(&self) -> PathBuf
pub fn web_server_storage(&self) -> PathBuf
Suggested path for web server storage
Trait Implementations§
Source§impl Clone for LauncherPaths
impl Clone for LauncherPaths
Source§fn clone(&self) -> LauncherPaths
fn clone(&self) -> LauncherPaths
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 moreAuto Trait Implementations§
impl Freeze for LauncherPaths
impl RefUnwindSafe for LauncherPaths
impl Send for LauncherPaths
impl Sync for LauncherPaths
impl Unpin for LauncherPaths
impl UnwindSafe for LauncherPaths
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