pub struct SnackbarController { /* private fields */ }Implementations§
Source§impl SnackbarController
impl SnackbarController
pub fn new(overlay: OverlayHandle) -> Self
pub fn tick_for_frame(elapsed_ms: u32)
pub fn show(&self, request: SnackbarRequest)
pub fn tick(&self, elapsed_ms: u32)
pub fn dismiss(&self)
pub fn current(&self) -> Option<(String, Option<SnackbarAction>)>
Trait Implementations§
Source§impl Clone for SnackbarController
impl Clone for SnackbarController
Source§fn clone(&self) -> SnackbarController
fn clone(&self) -> SnackbarController
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SnackbarController
impl !RefUnwindSafe for SnackbarController
impl !Send for SnackbarController
impl !Sync for SnackbarController
impl Unpin for SnackbarController
impl !UnwindSafe for SnackbarController
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