pub struct Notifier<U> { /* private fields */ }Expand description
A Widget to show notifications
By default, it is expected to be placed “under” a PromptLine, and
with the "HidePromptLine" hook group, take its place when the
PromptLine is not in focus.
If you don’t want this behaviour, see left_with_ratio
Trait Implementations§
Source§impl<U: Ui> Widget<U> for Notifier<U>
impl<U: Ui> Widget<U> for Notifier<U>
Source§fn once() -> Result<(), Text>
fn once() -> Result<(), Text>
Actions taken when this widget opens for the first time Read more
Source§fn cursors_mut(&mut self) -> Option<&mut Cursors>
fn cursors_mut(&mut self) -> Option<&mut Cursors>
A mutable reference to the
Cursors, if they existSource§fn on_unfocus(&mut self, area: &U::Area)
fn on_unfocus(&mut self, area: &U::Area)
Actions to do whenever this
Widget is unfocused.Auto Trait Implementations§
impl<U> !Freeze for Notifier<U>
impl<U> !RefUnwindSafe for Notifier<U>
impl<U> Send for Notifier<U>where
U: Send,
impl<U> !Sync for Notifier<U>
impl<U> Unpin for Notifier<U>where
U: Unpin,
impl<U> !UnwindSafe for Notifier<U>
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