Trait PartitionManagerPar

Source
pub trait PartitionManagerPar {
    // Required methods
    fn from_game_par(
        retail_directory: PathBuf,
        game_version: WoaVersion,
        mount: bool,
    ) -> Result<Self, PartitionManagerError>
       where Self: Sized;
    fn from_game_with_callback_par<F>(
        retail_directory: PathBuf,
        game_version: WoaVersion,
        mount: bool,
        progress_callback: F,
    ) -> Result<Self, PartitionManagerError>
       where F: FnMut(usize, &PartitionState) + Send + Sync,
             Self: Sized;
    fn mount_partitions_par<F>(
        &mut self,
        progress_callback: F,
    ) -> Result<(), PartitionManagerError>
       where F: FnMut(usize, &PartitionState) + Send + Sync;
}

Required Methods§

Source

fn from_game_par( retail_directory: PathBuf, game_version: WoaVersion, mount: bool, ) -> Result<Self, PartitionManagerError>
where Self: Sized,

Source

fn from_game_with_callback_par<F>( retail_directory: PathBuf, game_version: WoaVersion, mount: bool, progress_callback: F, ) -> Result<Self, PartitionManagerError>
where F: FnMut(usize, &PartitionState) + Send + Sync, Self: Sized,

Source

fn mount_partitions_par<F>( &mut self, progress_callback: F, ) -> Result<(), PartitionManagerError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§