pub struct BackgroundTaskRegistrationGroup(/* private fields */);
Implementations§
§impl BackgroundTaskRegistrationGroup
impl BackgroundTaskRegistrationGroup
pub fn Id(&self) -> Result<HSTRING>
pub fn Name(&self) -> Result<HSTRING>
pub fn BackgroundActivated<P0>(
&self,
handler: P0
) -> Result<EventRegistrationToken>where
P0: IntoParam<TypedEventHandler<BackgroundTaskRegistrationGroup, BackgroundActivatedEventArgs>>,
pub fn RemoveBackgroundActivated( &self, token: EventRegistrationToken ) -> Result<()>
pub fn AllTasks(&self) -> Result<IMapView<GUID, BackgroundTaskRegistration>>
pub fn Create(id: &HSTRING) -> Result<BackgroundTaskRegistrationGroup>
pub fn CreateWithName( id: &HSTRING, name: &HSTRING ) -> Result<BackgroundTaskRegistrationGroup>
Trait Implementations§
§impl Clone for BackgroundTaskRegistrationGroup
impl Clone for BackgroundTaskRegistrationGroup
§fn clone(&self) -> BackgroundTaskRegistrationGroup
fn clone(&self) -> BackgroundTaskRegistrationGroup
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for BackgroundTaskRegistrationGroup
impl Debug for BackgroundTaskRegistrationGroup
§impl From<&BackgroundTaskRegistrationGroup> for &IInspectable
impl From<&BackgroundTaskRegistrationGroup> for &IInspectable
§fn from(value: &BackgroundTaskRegistrationGroup) -> Self
fn from(value: &BackgroundTaskRegistrationGroup) -> Self
Converts to this type from the input type.
§impl From<&BackgroundTaskRegistrationGroup> for &IUnknown
impl From<&BackgroundTaskRegistrationGroup> for &IUnknown
§fn from(value: &BackgroundTaskRegistrationGroup) -> Self
fn from(value: &BackgroundTaskRegistrationGroup) -> Self
Converts to this type from the input type.
§impl From<BackgroundTaskRegistrationGroup> for IInspectable
impl From<BackgroundTaskRegistrationGroup> for IInspectable
§fn from(value: BackgroundTaskRegistrationGroup) -> Self
fn from(value: BackgroundTaskRegistrationGroup) -> Self
Converts to this type from the input type.
§impl From<BackgroundTaskRegistrationGroup> for IUnknown
impl From<BackgroundTaskRegistrationGroup> for IUnknown
§fn from(value: BackgroundTaskRegistrationGroup) -> Self
fn from(value: BackgroundTaskRegistrationGroup) -> Self
Converts to this type from the input type.
§impl Interface for BackgroundTaskRegistrationGroup
impl Interface for BackgroundTaskRegistrationGroup
§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§impl PartialEq for BackgroundTaskRegistrationGroup
impl PartialEq for BackgroundTaskRegistrationGroup
§fn eq(&self, other: &BackgroundTaskRegistrationGroup) -> bool
fn eq(&self, other: &BackgroundTaskRegistrationGroup) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BackgroundTaskRegistrationGroup
impl Send for BackgroundTaskRegistrationGroup
impl StructuralPartialEq for BackgroundTaskRegistrationGroup
impl Sync for BackgroundTaskRegistrationGroup
Auto Trait Implementations§
impl RefUnwindSafe for BackgroundTaskRegistrationGroup
impl Unpin for BackgroundTaskRegistrationGroup
impl UnwindSafe for BackgroundTaskRegistrationGroup
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