pub struct ReactiveCommandAdapter { /* private fields */ }Expand description
A command of ReactiveUI as a command of FerroUI: each member forwards to the command it wraps,
with the parameter seen as &dyn Any.
Deviation (DEVIATIONS.md, ReactiveUI controls): upstream sets the command itself as the
Command of a control; the two ICommands of the port are bridged by this adapter.
Implementations§
Source§impl ReactiveCommandAdapter
impl ReactiveCommandAdapter
Trait Implementations§
Source§impl Debug for ReactiveCommandAdapter
impl Debug for ReactiveCommandAdapter
Source§impl ICommand for ReactiveCommandAdapter
impl ICommand for ReactiveCommandAdapter
Source§fn can_execute(&self, parameter: Option<&BoxedValue>) -> bool
fn can_execute(&self, parameter: Option<&BoxedValue>) -> bool
Defines the method that determines whether the command can execute
in its current state.
parameter is data used by the command; if
the command does not require data, it can be None.Source§fn execute(&self, parameter: Option<&BoxedValue>)
fn execute(&self, parameter: Option<&BoxedValue>)
Defines the method to be called when the command is invoked.
Source§fn can_execute_changed(&self, handler: Rc<dyn Fn()>) -> Rc<dyn IDisposable>
fn can_execute_changed(&self, handler: Rc<dyn Fn()>) -> Rc<dyn IDisposable>
Occurs when changes occur that affect whether or not the command
should execute. Disposing the returned handle unsubscribes.
Auto Trait Implementations§
impl !RefUnwindSafe for ReactiveCommandAdapter
impl !Send for ReactiveCommandAdapter
impl !Sync for ReactiveCommandAdapter
impl !UnwindSafe for ReactiveCommandAdapter
impl Freeze for ReactiveCommandAdapter
impl Unpin for ReactiveCommandAdapter
impl UnsafeUnpin for ReactiveCommandAdapter
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