pub struct Notifications { /* private fields */ }Expand description
A Widget to show notifications
You can style modify it using the opts::set_notifs function in
Duat:
setup_duat!(setup);
use duat::prelude::*;
fn setup() {
opts::set_notifs(|opts| {
opts.fmt(|rec| {
txt!(
"[notifs.bracket]([log_book.location]{}[notifs.bracket]) {}",
rec.location(),
rec.text().clone()
)
})
});
}Implementations§
Source§impl Notifications
impl Notifications
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notifications
impl !RefUnwindSafe for Notifications
impl Send for Notifications
impl !Sync for Notifications
impl Unpin for Notifications
impl UnsafeUnpin for Notifications
impl !UnwindSafe for Notifications
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