Skip to main content

StreamNode

Struct StreamNode 

Source
pub struct StreamNode { /* private fields */ }
Expand description

A node that produces the values of an observable source (^): through a fixed stream plugin (compiled binding paths) or, when none is given, the first registered plugin that matches the source.

Implementations§

Source§

impl StreamNode

Source

pub fn new(plugin: Rc<dyn IStreamPlugin>) -> Rc<Self>

Source

pub fn new_dynamic() -> Rc<Self>

Creates a node that selects the plugin from the registered plugins.

Trait Implementations§

Source§

impl Drop for StreamNode

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl ExpressionNode for StreamNode

Source§

fn state(&self) -> &NodeState

Source§

fn build_string(&self, builder: &mut String)

Appends a string representation of the node to builder.
Source§

fn on_source_changed( &self, source: Option<&BoxedValue>, _data_validation_error: Option<&BindingError>, )

Subscribes to the new source and updates the current value.
Source§

fn unsubscribe(&self, _old_source: &BoxedValue)

Unsubscribes from the previous source.
Source§

fn build_string_with_nodes( &self, builder: &mut String, nodes: &[Rc<dyn ExpressionNode>], )

Builds a string representation of the binding path up to this node.
Source§

fn as_settable(&self) -> Option<&dyn ISettableNode>

Source§

fn as_property_accessor_node(&self) -> Option<&dyn IPropertyAccessorNode>

Source§

fn as_source_node(&self) -> Option<&dyn SourceNode>

Source§

fn is_data_context_node(&self) -> bool

Whether the node reads a data context.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.