Skip to main content

PersistentBottomSheetController

Struct PersistentBottomSheetController 

Source
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

Source

pub fn closed(&self) -> CompleterFuture<()> ⓘ

Completes when the bottom sheet is no longer visible.

Source

pub fn close(&self, app: &mut App)

Removes the bottom sheet from the scaffold.

Source

pub fn set_state(&self, app: &mut App, f: &mut dyn FnMut(&mut App))

Marks the bottom sheet as needing to rebuild, after running f.

Trait Implementations§

Source§

impl Debug for PersistentBottomSheetController

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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 PersistentBottomSheetController
where *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
where Rc<dyn Widget>: Unpin, Rc<Shared<()>>: Unpin, Rc<dyn Fn(&mut App)>: Unpin, Rc<dyn Fn(&mut App, &mut dyn FnMut(&mut App))>: Unpin, Rc<dyn Key>: Unpin, NonZero<u32>: Unpin, Rc<Keep>: Unpin, Rc<dyn Fn(&mut App, AnyElement) -> Rc<dyn Widget>>: Unpin, Rc<dyn ShapeBorder>: Unpin,

§

impl UnsafeUnpin for PersistentBottomSheetController
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>