INotification
trait · ferroui-controls · v0.5.0
trait INotification
Represents a notification that can be shown in a window or by the host operating system.
Not meant to be implemented outside the framework.
Members
title
fn title(self: &Self) -> Option<String>
Gets the title of the notification.
message
fn message(self: &Self) -> Option<String>
Gets the notification message.
type_
fn type_(self: &Self) -> NotificationType
Gets the NotificationType of the notification.
expiration
fn expiration(self: &Self) -> Duration
Gets the expiration time of the notification after which it will
automatically close. If the value is Duration::ZERO then the
notification will remain open until the user closes it.
on_click
fn on_click(self: &Self) -> Option<Rc<dyn Fn() -> ()>>
Gets an action to be run when the notification is clicked.
on_close
fn on_close(self: &Self) -> Option<Rc<dyn Fn() -> ()>>
Gets an action to be run when the notification is closed.
to_boxed
fn to_boxed(self: Rc<Self>) -> BoxedValue
The notification as an untyped value: the object itself, as content controls display it and bindings read it.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.