pub struct InstallerFamilyDriver { /* private fields */ }Implementations§
Source§impl InstallerFamilyDriver
impl InstallerFamilyDriver
pub fn new(source: InstallerMavenSource) -> Self
pub fn for_spec(spec: &'static MavenInstallerSpec) -> Self
pub fn with_vanilla_source(self, vanilla_source: VanillaSource) -> Self
pub fn descriptor(&self) -> DriverDescriptor
Trait Implementations§
Source§impl Clone for InstallerFamilyDriver
impl Clone for InstallerFamilyDriver
Source§impl Debug for InstallerFamilyDriver
impl Debug for InstallerFamilyDriver
Source§impl Driver for InstallerFamilyDriver
impl Driver for InstallerFamilyDriver
fn descriptor(&self) -> DriverDescriptor
fn inspect<'life0, 'life1, 'async_trait>(
&'life0 self,
probe: &'life1 InstanceProbe,
) -> Pin<Box<dyn Future<Output = Result<Option<InstalledDriver>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ResolvedDriverPlan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<ResolvedDriverPlan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Resolves metadata and download sources needed to install or refresh an instance.
Source§fn verify_prepared<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
instance: &'life1 InstanceStorage,
prepared: &'life2 PreparedVersionJsonInstance,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify_prepared<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
instance: &'life1 InstanceStorage,
prepared: &'life2 PreparedVersionJsonInstance,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Verifies family-specific persisted state when loading an existing instance.
Source§fn prepare<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn prepare<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 PrepareRequest<'life2>,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Prepare a version for launch and return the common version JSON view. Read more
Source§fn load_prepared<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 InstanceStorage,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_prepared<'life0, 'life1, 'async_trait>(
&'life0 self,
instance: &'life1 InstanceStorage,
) -> Pin<Box<dyn Future<Output = Result<PreparedVersionJsonInstance>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a prepared version and return the common version JSON view. Read more
Auto Trait Implementations§
impl Forget for InstallerFamilyDriver
impl Freeze for InstallerFamilyDriverwhere
*const ArcInner<RwLock<ClientState>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ClientState>>>: Freeze,
*const [Pos] is !null: Freeze,
PhantomData<[Pos]>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Bucket<HeaderValue>>: Freeze,
PhantomData<ExtraValue<HeaderValue>>: Freeze,
&'static MavenInstallerSpec: Freeze,
&'static str: Freeze,
PhantomData<(String, Url)>: Freeze,
impl Move for InstallerFamilyDriver
impl RefUnwindSafe for InstallerFamilyDriverwhere
Atomic<usize>: RefUnwindSafe,
RwLock<ClientState>: RefUnwindSafe,
Atomic<*mut ()>: RefUnwindSafe,
impl Send for InstallerFamilyDriver
impl Sync for InstallerFamilyDriver
impl Unpin for InstallerFamilyDriver
impl UnsafeUnpin for InstallerFamilyDriverwhere
*const ArcInner<RwLock<ClientState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ClientState>>>: UnsafeUnpin,
*const [Pos] is !null: UnsafeUnpin,
PhantomData<[Pos]>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Bucket<HeaderValue>>: UnsafeUnpin,
PhantomData<ExtraValue<HeaderValue>>: UnsafeUnpin,
&'static MavenInstallerSpec: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(String, Url)>: UnsafeUnpin,
impl UnwindSafe for InstallerFamilyDriverwhere
Arc<RwLock<ClientState>>: UnwindSafe,
BoxRaw<[Pos]>: UnwindSafe,
RawVecInner: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
&'static MavenInstallerSpec: UnwindSafe,
&'static str: UnwindSafe,
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