Struct windows::ApplicationModel::Package
pub struct Package(/* private fields */);
Implementations§
§impl Package
impl Package
pub fn Id(&self) -> Result<PackageId>
pub fn InstalledLocation(&self) -> Result<StorageFolder>
pub fn IsFramework(&self) -> Result<bool>
pub fn Dependencies(&self) -> Result<IVectorView<Package>>
pub fn DisplayName(&self) -> Result<HSTRING>
pub fn PublisherDisplayName(&self) -> Result<HSTRING>
pub fn Description(&self) -> Result<HSTRING>
pub fn Logo(&self) -> Result<Uri>
pub fn IsResourcePackage(&self) -> Result<bool>
pub fn IsBundle(&self) -> Result<bool>
pub fn IsDevelopmentMode(&self) -> Result<bool>
pub fn Status(&self) -> Result<PackageStatus>
pub fn InstalledDate(&self) -> Result<DateTime>
pub fn GetAppListEntriesAsync( &self, ) -> Result<IAsyncOperation<IVectorView<AppListEntry>>>
pub fn SignatureKind(&self) -> Result<PackageSignatureKind>
pub fn IsOptional(&self) -> Result<bool>
pub fn VerifyContentIntegrityAsync(&self) -> Result<IAsyncOperation<bool>>
pub fn GetContentGroupsAsync( &self, ) -> Result<IAsyncOperation<IVector<PackageContentGroup>>>
pub fn GetContentGroupAsync( &self, name: &HSTRING, ) -> Result<IAsyncOperation<PackageContentGroup>>
pub fn StageContentGroupsAsync<P0>(
&self,
names: P0,
) -> Result<IAsyncOperation<IVector<PackageContentGroup>>>where
P0: Param<IIterable<HSTRING>>,
pub fn StageContentGroupsWithPriorityAsync<P0>(
&self,
names: P0,
movetoheadofqueue: bool,
) -> Result<IAsyncOperation<IVector<PackageContentGroup>>>where
P0: Param<IIterable<HSTRING>>,
pub fn SetInUseAsync(&self, inuse: bool) -> Result<IAsyncOperation<bool>>
pub fn GetAppInstallerInfo(&self) -> Result<AppInstallerInfo>
pub fn CheckUpdateAvailabilityAsync( &self, ) -> Result<IAsyncOperation<PackageUpdateAvailabilityResult>>
pub fn MutableLocation(&self) -> Result<StorageFolder>
pub fn EffectiveLocation(&self) -> Result<StorageFolder>
pub fn EffectiveExternalLocation(&self) -> Result<StorageFolder>
pub fn MachineExternalLocation(&self) -> Result<StorageFolder>
pub fn UserExternalLocation(&self) -> Result<StorageFolder>
pub fn InstalledPath(&self) -> Result<HSTRING>
pub fn MutablePath(&self) -> Result<HSTRING>
pub fn EffectivePath(&self) -> Result<HSTRING>
pub fn EffectiveExternalPath(&self) -> Result<HSTRING>
pub fn MachineExternalPath(&self) -> Result<HSTRING>
pub fn UserExternalPath(&self) -> Result<HSTRING>
pub fn GetLogoAsRandomAccessStreamReference( &self, size: Size, ) -> Result<RandomAccessStreamReference>
pub fn GetAppListEntries(&self) -> Result<IVectorView<AppListEntry>>
pub fn IsStub(&self) -> Result<bool>
pub fn FindRelatedPackages<P0>(&self, options: P0) -> Result<IVector<Package>>where
P0: Param<FindRelatedPackagesOptions>,
pub fn SourceUriSchemeName(&self) -> Result<HSTRING>
pub fn Current() -> Result<Package>
pub fn InstallDate(&self) -> Result<DateTime>
pub fn GetThumbnailToken(&self) -> Result<HSTRING>
pub fn Launch(&self, parameters: &HSTRING) -> Result<()>
Trait Implementations§
§impl Interface for Package
impl Interface for Package
§const IID: GUID = <IPackage as windows_core::Interface>::IID
const IID: GUID = <IPackage as windows_core::Interface>::IID
The
GUID
associated with the interface.§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.impl Eq for Package
impl Send for Package
impl StructuralPartialEq for Package
impl Sync for Package
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Unpin for Package
impl UnwindSafe for Package
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)