CommandBinderService
struct · ferroui-reactiveui · v0.5.0
struct CommandBinderService
Finds the ICreatesCommandBinding with the highest affinity for a type of control
(CommandBinderService), as the property observation finds its observer.
Members
get_binder
fn get_binder<T: ?Sized + 'static>(has_event_target: bool) -> Option<Rc<dyn ICreatesCommandBinding>>
The registered binder with the highest positive affinity for the control type T; of equal
affinities the first registered wins; None when every binder answers zero or less
(GetBinder<T>(bool hasEventTarget)).
get_binder_for
fn get_binder_for(target_type: TypeId, has_event_target: bool) -> Option<Rc<dyn ICreatesCommandBinding>>
get_binder for the control type target_type.
get_binder_above
fn get_binder_above(target_type: TypeId, own_affinity: i32, has_event_target: bool) -> Option<Rc<dyn ICreatesCommandBinding>>
The registered binder with the highest affinity for target_type when it outranks
own_affinity, the affinity of the binding the caller would make itself
(CommandBindingAffinityChecker.HasHigherAffinityPlugin<T> and GetBinder<T>).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>Any
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.