ObservableStreamBehavior
struct · ferroui-xaml-interactions · v0.5.0
struct ObservableStreamBehavior
A behavior that subscribes to an observable and executes actions on its values, its error and its completion.
The source is an observable of untyped values
(Rc<dyn IObservable<Option<BoxedValue>>> or Rc<dyn IObservable<BoxedValue>>, the
IObservable<object> of the reference). The subscription lives while the behavior is in the
logical tree; the actions run in jobs of the dispatcher.
Members
TYPEto_refsource_propertyactions_propertyerror_actions_propertycompleted_actions_propertyconstructnewsourceset_sourceactionsset_actionserror_actionsset_error_actionscompleted_actionsset_completed_actions
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ObservableStreamBehavior>
Returns a strong reference to this object.
source_property
fn source_property() -> &'static StyledProperty<Option<BoxedValue>>
Identifies the Source property.
actions_property
fn actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the Actions property.
error_actions_property
fn error_actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the ErrorActions property.
completed_actions_property
fn completed_actions_property() -> &'static StyledProperty<Option<ActionCollection>>
Identifies the CompletedActions property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a behavior.
source
fn source(self: &Self) -> Option<BoxedValue>
Gets or sets the source observable. This is a property of the object model.
set_source
fn set_source(self: &Self, value: Option<BoxedValue>)
actions
fn actions(self: &Self) -> Option<ActionCollection>
Gets or sets the collection of actions to execute when the observable emits a value. This is a property of the object model.
set_actions
fn set_actions(self: &Self, value: Option<ActionCollection>)
error_actions
fn error_actions(self: &Self) -> Option<ActionCollection>
Gets or sets the collection of actions to execute when the observable emits an error. This is a property of the object model.
set_error_actions
fn set_error_actions(self: &Self, value: Option<ActionCollection>)
completed_actions
fn completed_actions(self: &Self) -> Option<ActionCollection>
Gets or sets the collection of actions to execute when the observable completes. This is a property of the object model.
set_completed_actions
fn set_completed_actions(self: &Self, value: Option<ActionCollection>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtStyledElementImplExtClassDefaultsErasedDestructorIntoEitherStyledElementBehaviorImplExtDerefUpcast<T>Upcast<ObservableStreamBehavior>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementBehaviorImplFerroObjectImplStyledElementImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.