pub struct StockGameManager { /* private fields */ }Expand description
Manages vanilla game snapshots for stock game preservation.
Implementations§
Source§impl StockGameManager
impl StockGameManager
pub fn new(store_dir: PathBuf) -> Self
Sourcepub fn with_db(store_dir: PathBuf, db: ModdeDb) -> Self
pub fn with_db(store_dir: PathBuf, db: ModdeDb) -> Self
Create a manager backed by both filesystem and SQLite.
Sourcepub fn default_dir() -> PathBuf
pub fn default_dir() -> PathBuf
Default store directory: ~/.local/share/modde/stock/.
Sourcepub fn detect_steam_install(&self, game_dir_name: &str) -> Option<PathBuf>
pub fn detect_steam_install(&self, game_dir_name: &str) -> Option<PathBuf>
Detect Steam install path for a given game.
Auto Trait Implementations§
impl !RefUnwindSafe for StockGameManager
impl !UnwindSafe for StockGameManager
impl Freeze for StockGameManager
impl Send for StockGameManager
impl Sync for StockGameManager
impl Unpin for StockGameManager
impl UnsafeUnpin for StockGameManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more