FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ObservableStreamBehavior>
    

    Returns a strong reference to this object.

    Source

    source_property

    fn source_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Identifies the Source property.

    Source

    actions_property

    fn actions_property() -> &'static StyledProperty<Option<ActionCollection>>
    

    Identifies the Actions property.

    Source

    error_actions_property

    fn error_actions_property() -> &'static StyledProperty<Option<ActionCollection>>
    

    Identifies the ErrorActions property.

    Source

    completed_actions_property

    fn completed_actions_property() -> &'static StyledProperty<Option<ActionCollection>>
    

    Identifies the CompletedActions property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    source

    fn source(self: &Self) -> Option<BoxedValue>
    

    Gets or sets the source observable. This is a property of the object model.

    Source

    set_source

    fn set_source(self: &Self, value: Option<BoxedValue>)
    

    Source

    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.

    Source

    set_actions

    fn set_actions(self: &Self, value: Option<ActionCollection>)
    

    Source

    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.

    Source

    set_error_actions

    fn set_error_actions(self: &Self, value: Option<ActionCollection>)
    

    Source

    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.

    Source

    set_completed_actions

    fn set_completed_actions(self: &Self, value: Option<ActionCollection>)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.