Struct winrt_notification::ToastNotification [−]
#[repr(transparent)]pub struct ToastNotification(_);
Implementations
impl ToastNotification
impl ToastNotification
pub fn SetExpirationTime<'a, Param0>(&self, value: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, IReference<DateTime>>,
pub fn ExpirationTime(&self) -> Result<IReference<DateTime>, Error>
pub fn Dismissed<'a, Param0>(
&self,
handler: Param0
) -> Result<EventRegistrationToken, Error> where
Param0: IntoParam<'a, TypedEventHandler<ToastNotification, ToastDismissedEventArgs>>,
pub fn RemoveDismissed<'a, Param0>(&self, token: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub fn Activated<'a, Param0>(
&self,
handler: Param0
) -> Result<EventRegistrationToken, Error> where
Param0: IntoParam<'a, TypedEventHandler<ToastNotification, IInspectable>>,
pub fn RemoveActivated<'a, Param0>(&self, token: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub fn Failed<'a, Param0>(
&self,
handler: Param0
) -> Result<EventRegistrationToken, Error> where
Param0: IntoParam<'a, TypedEventHandler<ToastNotification, ToastFailedEventArgs>>,
pub fn RemoveFailed<'a, Param0>(&self, token: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, EventRegistrationToken>,
pub fn SetTag<'a, Param0>(&self, value: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, HSTRING>,
pub fn SetGroup<'a, Param0>(&self, value: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, HSTRING>,
pub fn SetSuppressPopup(&self, value: bool) -> Result<(), Error>
pub fn SuppressPopup(&self) -> Result<bool, Error>
pub fn CreateToastNotification<'a, Param0>(
content: Param0
) -> Result<ToastNotification, Error> where
Param0: IntoParam<'a, XmlDocument>,
pub fn NotificationMirroring(&self) -> Result<NotificationMirroring, Error>
pub fn SetNotificationMirroring(
&self,
value: NotificationMirroring
) -> Result<(), Error>
pub fn SetRemoteId<'a, Param0>(&self, value: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, HSTRING>,
pub fn SetData<'a, Param0>(&self, value: Param0) -> Result<(), Error> where
Param0: IntoParam<'a, NotificationData>,
pub fn SetPriority(&self, value: ToastNotificationPriority) -> Result<(), Error>
pub fn ExpiresOnReboot(&self) -> Result<bool, Error>
pub fn SetExpiresOnReboot(&self, value: bool) -> Result<(), Error>
Trait Implementations
impl Clone for ToastNotification
impl Clone for ToastNotification
pub fn clone(&self) -> ToastNotification
pub fn clone(&self) -> ToastNotification
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for ToastNotification
impl Debug for ToastNotification
impl Interface for ToastNotification
impl Interface for ToastNotification
impl PartialEq<ToastNotification> for ToastNotification
impl PartialEq<ToastNotification> for ToastNotification
pub fn eq(&self, other: &ToastNotification) -> bool
pub fn eq(&self, other: &ToastNotification) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &ToastNotification) -> bool
pub fn ne(&self, other: &ToastNotification) -> bool
This method tests for !=
.
impl Eq for ToastNotification
impl Send for ToastNotification
impl StructuralEq for ToastNotification
impl StructuralPartialEq for ToastNotification
impl Sync for ToastNotification
Auto Trait Implementations
impl RefUnwindSafe for ToastNotification
impl Unpin for ToastNotification
impl UnwindSafe for ToastNotification
Blanket Implementations
Mutably borrows from an owned value. Read more