pub struct AddonPrepareRequest<'a> {
pub session: &'a DownloadSession,
pub instance: &'a InstanceStorage,
pub driver: DriverDescriptor,
pub game_version: &'a MinecraftVersionId,
pub addon_version: Option<&'a str>,
pub runtime_options: &'a RuntimeOptions,
pub runtime_resolver: &'a RuntimeResolver,
}Expand description
Inputs passed to Addon::prepare.
Fields§
§session: &'a DownloadSessionActive download session used to download addon artifacts.
instance: &'a InstanceStorageStorage handle for the target instance directory.
driver: DriverDescriptorHost driver installed on the target instance.
game_version: &'a MinecraftVersionIdMinecraft version of the target instance.
addon_version: Option<&'a str>Requested addon version, if specified by the caller.
runtime_options: &'a RuntimeOptionsRuntime options configured for installation/launch preparation.
runtime_resolver: &'a RuntimeResolverRuntime resolver for locating Java installations when needed.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AddonPrepareRequest<'a>
impl<'a> !UnwindSafe for AddonPrepareRequest<'a>
impl<'a> Forget for AddonPrepareRequest<'a>
impl<'a> Freeze for AddonPrepareRequest<'a>where
&'a DownloadSession: Freeze,
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: Freeze,
&'static str: Freeze,
&'a Version<MinecraftVersionTag>: Freeze,
&'a str: Freeze,
&'a RuntimeOptions: Freeze,
&'a RuntimeResolver: Freeze,
impl<'a> Move for AddonPrepareRequest<'a>
impl<'a> Send for AddonPrepareRequest<'a>where
&'a DownloadSession: Send,
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: Send,
&'static str: Send,
&'a Version<MinecraftVersionTag>: Send,
&'a str: Send,
&'a RuntimeOptions: Send,
&'a RuntimeResolver: Send,
impl<'a> Sync for AddonPrepareRequest<'a>
impl<'a> Unpin for AddonPrepareRequest<'a>where
&'a DownloadSession: Unpin,
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: Unpin,
&'static str: Unpin,
&'a Version<MinecraftVersionTag>: Unpin,
&'a str: Unpin,
&'a RuntimeOptions: Unpin,
&'a RuntimeResolver: Unpin,
impl<'a> UnsafeUnpin for AddonPrepareRequest<'a>where
&'a DownloadSession: UnsafeUnpin,
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'a Version<MinecraftVersionTag>: UnsafeUnpin,
&'a str: UnsafeUnpin,
&'a RuntimeOptions: UnsafeUnpin,
&'a RuntimeResolver: UnsafeUnpin,
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