pub struct ModManager<'index> {
pub index: ModIndex<'index>,
pub installed_mods: HashMap<ModId, String>,
pub expected_mods: HashMap<ModId, (bool, String)>,
}Fields§
§index: ModIndex<'index>§installed_mods: HashMap<ModId, String>§expected_mods: HashMap<ModId, (bool, String)>Implementations§
Source§impl ModManager<'_>
impl ModManager<'_>
pub fn detect_installed_mods(&mut self) -> Result<(), String>
pub fn read_expected_mods(&mut self) -> Result<(), String>
pub fn write_expected_mods(&self) -> Result<(), String>
pub fn repopulate_expected_mods(&mut self) -> Result<(), String>
pub fn uninstall_mod(&mut self, (id, m): &ModEntry<'_>) -> Result<(), String>
pub async fn install_mod( &mut self, client: &Client, entry: &ModEntry<'_>, ) -> Result<(), String>
pub async fn reinstall_mod( &mut self, client: &Client, entry: &ModEntry<'_>, ) -> Result<(), String>
pub fn enable_mod(&mut self, (id, m): &ModEntry<'_>) -> Result<(), String>
pub fn disable_mod(&mut self, (id, m): &ModEntry<'_>) -> Result<(), String>
Trait Implementations§
Source§impl<'index> Clone for ModManager<'index>
impl<'index> Clone for ModManager<'index>
Source§fn clone(&self) -> ModManager<'index>
fn clone(&self) -> ModManager<'index>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'index> Debug for ModManager<'index>
impl<'index> Debug for ModManager<'index>
Source§impl<'index> Default for ModManager<'index>
impl<'index> Default for ModManager<'index>
Source§fn default() -> ModManager<'index>
fn default() -> ModManager<'index>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'index> Freeze for ModManager<'index>
impl<'index> RefUnwindSafe for ModManager<'index>
impl<'index> Send for ModManager<'index>
impl<'index> Sync for ModManager<'index>
impl<'index> Unpin for ModManager<'index>
impl<'index> UnsafeUnpin for ModManager<'index>
impl<'index> UnwindSafe for ModManager<'index>
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