pub struct SnackbarRequest {
pub message: String,
pub action: Option<SnackbarAction>,
pub duration_ms: u32,
pub builder: Rc<dyn Fn(bool) -> View>,
}Fields§
§message: String§action: Option<SnackbarAction>§duration_ms: u32§builder: Rc<dyn Fn(bool) -> View>Called on every frame with whether the snackbar is in its exit-animation phase, so the view can animate out.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SnackbarRequest
impl !Send for SnackbarRequest
impl !Sync for SnackbarRequest
impl !UnwindSafe for SnackbarRequest
impl Freeze for SnackbarRequest
impl Unpin for SnackbarRequest
impl UnsafeUnpin for SnackbarRequest
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