pub struct InstalledInstance {
pub storage: InstanceStorage,
pub driver: InstalledDriver,
}Fields§
§storage: InstanceStorage§driver: InstalledDriverImplementations§
Source§impl InstalledInstance
impl InstalledInstance
pub async fn detect( storage: InstanceStorage, drivers: &[&dyn Driver], ) -> Result<Option<Self>>
pub async fn detect_all( storage: &GameStorage, version_layout: SharedInstanceLayout, drivers: &[&dyn Driver], ) -> Result<Vec<Result<Self, InstanceDetectionFailure>>>
Trait Implementations§
Source§impl Clone for InstalledInstance
impl Clone for InstalledInstance
Auto Trait Implementations§
impl !RefUnwindSafe for InstalledInstance
impl !UnwindSafe for InstalledInstance
impl Forget for InstalledInstance
impl Freeze for InstalledInstancewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn DynRootLayout> is !null: Freeze,
PhantomData<ArcInner<dyn DynRootLayout>>: Freeze,
*const ArcInner<dyn DynInstanceLayout> is !null: Freeze,
PhantomData<ArcInner<dyn DynInstanceLayout>>: Freeze,
&'static str: Freeze,
PhantomData<MinecraftVersionTag>: Freeze,
impl Move for InstalledInstance
impl Send for InstalledInstance
impl Sync for InstalledInstance
impl Unpin for InstalledInstance
impl UnsafeUnpin for InstalledInstancewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn DynRootLayout> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DynRootLayout>>: UnsafeUnpin,
*const ArcInner<dyn DynInstanceLayout> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn DynInstanceLayout>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<MinecraftVersionTag>: 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