pub struct KeepAliveHandle { /* private fields */ }Expand description
A Listenable which can be manually triggered.
Used with KeepAliveNotification objects as their
KeepAliveNotification::handle.
For a more convenient way to interact with AutomaticKeepAlive widgets,
consider using AutomaticKeepAliveClientMixin, which uses a
KeepAliveHandle internally.
Implementations§
Trait Implementations§
Source§impl ChangeNotifier for KeepAliveHandle
impl ChangeNotifier for KeepAliveHandle
fn change_notifier_data(&self) -> &ChangeNotifierData
fn change_notifier_data_mut(&mut self) -> &mut ChangeNotifierData
Source§fn will_add_listener(self: Handle<Self>, app: &mut App)
fn will_add_listener(self: Handle<Self>, app: &mut App)
Runs before the listener is stored. Dart overrides of
addListener that
work before super.addListener go here.Source§fn did_remove_listener(self: Handle<Self>, app: &mut App)
fn did_remove_listener(self: Handle<Self>, app: &mut App)
Runs after the listener is removed. Dart overrides of
removeListener that
work after super.removeListener go here.Auto Trait Implementations§
impl !RefUnwindSafe for KeepAliveHandle
impl !Send for KeepAliveHandle
impl !Sync for KeepAliveHandle
impl !UnwindSafe for KeepAliveHandle
impl Forget for KeepAliveHandle
impl Freeze for KeepAliveHandle
impl Move for KeepAliveHandle
impl Unpin for KeepAliveHandle
impl UnsafeUnpin for KeepAliveHandlewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Option<Listener>>: UnsafeUnpin,
*const RcInner<Cell<usize>> is !null: UnsafeUnpin,
PhantomData<RcInner<Cell<usize>>>: 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