pub struct RefreshCompletionDeferral { /* private fields */ }Expand description
Deferral class for notify that a work done in RefreshRequested event is done.
Implementations§
Source§impl RefreshCompletionDeferral
impl RefreshCompletionDeferral
Sourcepub fn new(deferred_action: impl Fn() + 'static) -> Rc<Self>
pub fn new(deferred_action: impl Fn() + 'static) -> Rc<Self>
Creates a deferral that runs deferred_action when every deferral
taken with get has been completed.
Sourcepub fn from_action(deferred_action: Option<Rc<dyn Fn()>>) -> Rc<Self>
pub fn from_action(deferred_action: Option<Rc<dyn Fn()>>) -> Rc<Self>
Creates a deferral for an action that may be absent.
pub fn complete(&self)
pub fn get(self: &Rc<Self>) -> Rc<Self>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RefreshCompletionDeferral
impl !RefUnwindSafe for RefreshCompletionDeferral
impl !Send for RefreshCompletionDeferral
impl !Sync for RefreshCompletionDeferral
impl !UnwindSafe for RefreshCompletionDeferral
impl Unpin for RefreshCompletionDeferral
impl UnsafeUnpin for RefreshCompletionDeferral
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more