pub struct AddonLaunchContext<'a> {
pub instance: &'a InstanceStorage,
pub driver: DriverDescriptor,
pub credential: &'a Credential,
pub record: &'a InstalledAddonRecord,
}Expand description
Context passed to Addon::augment_launch.
Fields§
§instance: &'a InstanceStorageStorage handle for the instance being launched.
driver: DriverDescriptorHost driver of the instance being launched.
credential: &'a CredentialAuthenticated player credential for this launch.
record: &'a InstalledAddonRecordPersisted state record for this addon on the instance.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AddonLaunchContext<'a>
impl<'a> !UnwindSafe for AddonLaunchContext<'a>
impl<'a> Forget for AddonLaunchContext<'a>
impl<'a> Freeze for AddonLaunchContext<'a>where
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: Freeze,
&'static str: Freeze,
&'a Credential: Freeze,
&'a InstalledAddonRecord: Freeze,
impl<'a> Move for AddonLaunchContext<'a>
impl<'a> Send for AddonLaunchContext<'a>where
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: Send,
&'static str: Send,
&'a Credential: Send,
&'a InstalledAddonRecord: Send,
impl<'a> Sync for AddonLaunchContext<'a>where
RawVecInner: Sync,
Arc<dyn DynRootLayout>: Sync,
Arc<dyn DynInstanceLayout>: Sync,
RawTable<(String, PistonMetaLibrariesDownloadsArtifact)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
RawTable<(String, String)>: Sync,
RawTable<(String, bool)>: Sync,
impl<'a> Unpin for AddonLaunchContext<'a>where
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: Unpin,
&'static str: Unpin,
&'a Credential: Unpin,
&'a InstalledAddonRecord: Unpin,
impl<'a> UnsafeUnpin for AddonLaunchContext<'a>where
&'a Storage<SharedInstanceLayout, Storage<SharedRootLayout>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
&'a Credential: UnsafeUnpin,
&'a InstalledAddonRecord: 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