pub struct PersistentBottomSheetController { /* private fields */ }Expand description
A ScaffoldFeatureController for standard bottom sheets.
This is the type of objects returned by ScaffoldState::show_bottom_sheet.
This controller is used to display both standard and persistent bottom
sheets. A bottom sheet is only persistent if it is set as the
Scaffold::bottom_sheet.
Implementations§
Source§impl PersistentBottomSheetController
impl PersistentBottomSheetController
Sourcepub fn closed(&self) -> CompleterFuture<()> ⓘ
pub fn closed(&self) -> CompleterFuture<()> ⓘ
Completes when the bottom sheet is no longer visible.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PersistentBottomSheetController
impl !Send for PersistentBottomSheetController
impl !Sync for PersistentBottomSheetController
impl !UnwindSafe for PersistentBottomSheetController
impl Forget for PersistentBottomSheetController
impl Freeze for PersistentBottomSheetControllerwhere
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
*const RcInner<Shared<()>> is !null: Freeze,
PhantomData<RcInner<Shared<()>>>: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
*const RcInner<dyn Fn(&mut App, &mut dyn FnMut(&mut App))> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App, &mut dyn FnMut(&mut App))>>: Freeze,
PhantomData<StandardBottomSheet>: Freeze,
impl Move for PersistentBottomSheetController
impl Unpin for PersistentBottomSheetController
impl UnsafeUnpin for PersistentBottomSheetControllerwhere
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
*const RcInner<Shared<()>> is !null: UnsafeUnpin,
PhantomData<RcInner<Shared<()>>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App, &mut dyn FnMut(&mut App))> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App, &mut dyn FnMut(&mut App))>>: UnsafeUnpin,
PhantomData<StandardBottomSheet>: 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