pub struct SnackbarRequest {
pub message: String,
pub action: Option<SnackbarAction>,
pub duration_ms: u32,
pub on_finished: Option<Rc<dyn Fn()>>,
pub builder: Rc<dyn Fn(bool) -> View>,
}Fields§
§message: String§action: Option<SnackbarAction>§duration_ms: u32§on_finished: Option<Rc<dyn Fn()>>§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 Forget for SnackbarRequest
impl Freeze for SnackbarRequest
impl Move for SnackbarRequest
impl Unpin for SnackbarRequest
impl UnsafeUnpin for SnackbarRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RcInner<dyn Fn()> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn()>>: UnsafeUnpin,
*const RcInner<dyn Fn(bool) -> View> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(bool) -> View>>: UnsafeUnpin,
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