pub struct PropertyAccessorBase { /* private fields */ }Expand description
The listener bookkeeping shared by property accessors.
Implementations§
Source§impl PropertyAccessorBase
impl PropertyAccessorBase
pub fn new() -> Self
pub fn is_subscribed(&self) -> bool
Sourcepub fn set_listener(&self, listener: AccessorListener)
pub fn set_listener(&self, listener: AccessorListener)
Stores the listener. Panics if already subscribed: a member accessor can be subscribed to only once.
Sourcepub fn clear_listener(&self)
pub fn clear_listener(&self)
Clears the listener. Panics if not subscribed.
Sourcepub fn publish_value(&self, value: Option<BoxedValue>)
pub fn publish_value(&self, value: Option<BoxedValue>)
Publishes a value to the listener.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PropertyAccessorBase
impl !RefUnwindSafe for PropertyAccessorBase
impl !Send for PropertyAccessorBase
impl !Sync for PropertyAccessorBase
impl !UnwindSafe for PropertyAccessorBase
impl Unpin for PropertyAccessorBase
impl UnsafeUnpin for PropertyAccessorBase
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