pub struct MessageNotification { /* private fields */ }
Implementations§
source§impl MessageNotification
impl MessageNotification
pub fn new<S>(message: S) -> MessageNotificationwhere S: Into<Cow<'static, str>>,
pub fn new_element( message: fn(_: TextStyle, _: &AppContext) -> AnyElement ) -> MessageNotification
pub fn with_click_message<S>(self, message: S) -> Selfwhere S: Into<Cow<'static, str>>,
pub fn on_click<F>(self, on_click: F) -> Selfwhere F: 'static + Send + Sync + Fn(&mut ViewContext<'_, Self>),
Trait Implementations§
source§impl Render for MessageNotification
impl Render for MessageNotification
impl EventEmitter<NotificationEvent> for MessageNotification
Auto Trait Implementations§
impl !RefUnwindSafe for MessageNotification
impl Send for MessageNotification
impl Sync for MessageNotification
impl Unpin for MessageNotification
impl !UnwindSafe for MessageNotification
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