pub struct PropertyChangedObservable { /* private fields */ }Expand description
The stream of change notifications of a property across all objects.
Implementations§
Source§impl PropertyChangedObservable
impl PropertyChangedObservable
Sourcepub fn subscribe(
&'static self,
handler: impl Fn(&FerroPropertyChangedEventArgs<'_>) + 'static,
) -> Rc<dyn IDisposable>
pub fn subscribe( &'static self, handler: impl Fn(&FerroPropertyChangedEventArgs<'_>) + 'static, ) -> Rc<dyn IDisposable>
Subscribes to changes of the property on any object.
Sourcepub fn add_class_handler<TTarget: ObjectType>(
&'static self,
handler: impl Fn(&TTarget, &FerroPropertyChangedEventArgs<'_>) + 'static,
) -> Rc<dyn IDisposable>
pub fn add_class_handler<TTarget: ObjectType>( &'static self, handler: impl Fn(&TTarget, &FerroPropertyChangedEventArgs<'_>) + 'static, ) -> Rc<dyn IDisposable>
Subscribes a handler that is only invoked for objects of class
TTarget (or classes derived from it).
Auto Trait Implementations§
impl !Freeze for PropertyChangedObservable
impl !RefUnwindSafe for PropertyChangedObservable
impl !Send for PropertyChangedObservable
impl !Sync for PropertyChangedObservable
impl !UnwindSafe for PropertyChangedObservable
impl Unpin for PropertyChangedObservable
impl UnsafeUnpin for PropertyChangedObservable
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
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