pub struct GameSettings { /* private fields */ }
Implementations§
Source§impl GameSettings
impl GameSettings
pub fn new(game_id: GameId, game_path: &Path) -> Result<GameSettings, Error>
pub fn with_local_path( game_id: GameId, game_path: &Path, local_path: &Path, ) -> Result<GameSettings, Error>
pub fn id(&self) -> GameId
pub fn load_order_method(&self) -> LoadOrderMethod
pub fn into_load_order( self, ) -> Box<dyn WritableLoadOrder + Send + Sync + 'static>
pub fn master_file(&self) -> &'static str
👎Deprecated: The master file is not necessarily of any significance: you should probably use early_loading_plugins() instead.
pub fn implicitly_active_plugins(&self) -> &[String]
pub fn is_implicitly_active(&self, plugin: &str) -> bool
pub fn early_loading_plugins(&self) -> &[String]
pub fn loads_early(&self, plugin: &str) -> bool
pub fn plugins_directory(&self) -> PathBuf
pub fn active_plugins_file(&self) -> &PathBuf
pub fn load_order_file(&self) -> Option<&PathBuf>
pub fn additional_plugins_directories(&self) -> &[PathBuf]
pub fn set_additional_plugins_directories(&mut self, paths: Vec<PathBuf>)
pub fn plugin_path(&self, plugin_name: &str) -> PathBuf
pub fn refresh_implicitly_active_plugins(&mut self) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for GameSettings
impl Clone for GameSettings
Source§fn clone(&self) -> GameSettings
fn clone(&self) -> GameSettings
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 moreSource§impl Debug for GameSettings
impl Debug for GameSettings
Source§impl Hash for GameSettings
impl Hash for GameSettings
Source§impl Ord for GameSettings
impl Ord for GameSettings
Source§fn cmp(&self, other: &GameSettings) -> Ordering
fn cmp(&self, other: &GameSettings) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GameSettings
impl PartialEq for GameSettings
Source§impl PartialOrd for GameSettings
impl PartialOrd for GameSettings
impl Eq for GameSettings
impl StructuralPartialEq for GameSettings
Auto Trait Implementations§
impl Freeze for GameSettings
impl RefUnwindSafe for GameSettings
impl Send for GameSettings
impl Sync for GameSettings
impl Unpin for GameSettings
impl UnwindSafe for GameSettings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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