pub struct RelationPropertyObserverContainerImpl {
pub reactive_instance: ReactiveRelation,
pub handles: DashMap<String, DashSet<u128>>,
}Expand description
Container which manages the observers of a reactive relation instance.
Fields§
§reactive_instance: ReactiveRelation§handles: DashMap<String, DashSet<u128>>Implementations§
Trait Implementations§
Source§impl PropertyObserverContainer for RelationPropertyObserverContainerImpl
impl PropertyObserverContainer for RelationPropertyObserverContainerImpl
Source§fn observe_with_handle<F>(&self, name: &str, subscriber: F) -> u128
fn observe_with_handle<F>(&self, name: &str, subscriber: F) -> u128
Observes the property with the given name.
A handle will be automatically created and stored
Source§fn propagate(&self, name: &str, target_property_name: &str)
fn propagate(&self, name: &str, target_property_name: &str)
Propagates the value from the property with the given name to the target property with the given name.
Source§fn remove_observer(&self, name: &str, handle_id: u128)
fn remove_observer(&self, name: &str, handle_id: u128)
Removes the observers of the property with the given name and the given observer handle.
Source§fn remove_observers(&self, name: &str)
fn remove_observers(&self, name: &str)
Removes all observers of the property with the given name that are managed by this PropertyObserverContainer.
Source§fn remove_all_observers(&self)
fn remove_all_observers(&self)
Removes all observers that are managed by this PropertyObserverContainer.
Auto Trait Implementations§
impl Freeze for RelationPropertyObserverContainerImpl
impl !RefUnwindSafe for RelationPropertyObserverContainerImpl
impl Send for RelationPropertyObserverContainerImpl
impl Sync for RelationPropertyObserverContainerImpl
impl Unpin for RelationPropertyObserverContainerImpl
impl !UnwindSafe for RelationPropertyObserverContainerImpl
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more