pub struct ReactiveFlow(/* private fields */);

Implementations§

Source§

impl ReactiveFlow

Source

pub fn new(wrapper_entity_instance: ReactiveEntity) -> Self

Trait Implementations§

Source§

impl BehaviourTypesContainer for ReactiveFlow

Source§

fn get_behaviours(&self) -> Vec<BehaviourTypeId>

Returns the behaviour types of the container.
Source§

fn add_behaviour(&self, ty: BehaviourTypeId)

Adds a behaviour to the container.
Source§

fn remove_behaviour(&self, ty: &BehaviourTypeId)

Removes a behaviour from the container.
Source§

fn behaves_as(&self, ty: &BehaviourTypeId) -> bool

Returns true, if the reactive instance behaves as the given behaviour.
Source§

impl Clone for ReactiveFlow

Source§

fn clone(&self) -> ReactiveFlow

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ComponentContainer for ReactiveFlow

Source§

fn get_components(&self) -> ComponentTypeIds

Returns the component types of the container.
Source§

fn add_component(&self, ty: ComponentTypeId)

Adds a component to the container.
Source§

fn add_component_with_properties(&self, component: &Component)

Adds a component to the container and initializes the reactive property instances.
Source§

fn remove_component(&self, ty: &ComponentTypeId)

Removes a component from the container.
Source§

fn is_a(&self, ty: &ComponentTypeId) -> bool

Returns true, if the reactive instance is composed with the given component.
Source§

impl Deref for ReactiveFlow

Source§

type Target = Arc<ReactiveFlowInstance>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Display for ReactiveFlow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ReactiveFlowInstance> for ReactiveFlow

Source§

fn from(reactive_flow: ReactiveFlowInstance) -> Self

Converts to this type from the input type.
Source§

impl NamedInstanceContainer for ReactiveFlow

Source§

fn name(&self) -> String

Returns the name of the instance.
Source§

fn description(&self) -> String

Returns the description of the instance.
Source§

impl NamespacedTypeGetter for ReactiveFlow

Source§

fn namespace(&self) -> String

Returns the namespace of the type.
Source§

fn type_name(&self) -> String

Returns the name of the type.
Source§

impl PropertyInstanceGetter for ReactiveFlow

Source§

fn get<S: Into<String>>(&self, property_name: S) -> Option<Value>

Returns the json value of the given property by name
Source§

fn as_bool<S: Into<String>>(&self, property_name: S) -> Option<bool>

Returns the boolean value of the given property by name
Source§

fn as_u64<S: Into<String>>(&self, property_name: S) -> Option<u64>

Returns the u64 value of the given property by name
Source§

fn as_i64<S: Into<String>>(&self, property_name: S) -> Option<i64>

Returns the i64 value of the given property by name
Source§

fn as_f64<S: Into<String>>(&self, property_name: S) -> Option<f64>

Returns the f64 value of the given property by name
Source§

fn as_string<S: Into<String>>(&self, property_name: S) -> Option<String>

Returns the string value of the given property by name
Source§

fn as_array<S: Into<String>>(&self, property_name: S) -> Option<Vec<Value>>

Returns the string value of the given property by name
Source§

fn as_object<S: Into<String>>( &self, property_name: S, ) -> Option<Map<String, Value>>

Returns the string value of the given property by name
Source§

impl PropertyInstanceSetter for ReactiveFlow

Source§

fn set_checked<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name if the property is mutable.
Source§

fn set<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name
Source§

fn set_no_propagate_checked<S: Into<String>>( &self, property_name: S, value: Value, )

Sets the value of the given property by name if the property is mutable. Sends the value down the stream.
Source§

fn set_no_propagate<S: Into<String>>(&self, property_name: S, value: Value)

Sets the value of the given property by name. Sends the value down the stream.
Source§

fn mutability<S: Into<String>>(&self, property_name: S) -> Option<Mutability>

Returns the mutability of the property by name.
Source§

fn set_mutability<S: Into<String>>( &self, property_name: S, mutability: Mutability, )

Sets the mutability of the property by name.
Source§

impl ReactiveInstance<Uuid> for ReactiveFlow

Source§

fn id(&self) -> Uuid

Returns the id of the reactive instance.
Source§

impl ReactivePropertyContainer for ReactiveFlow

Source§

fn tick_checked(&self)

Sends the current value down the stream if mutable.
Source§

fn tick(&self)

Sends the current value down the stream.
Source§

fn has_property(&self, name: &str) -> bool

Returns true, if a property with the given name exists.
Source§

fn add_property<S: Into<String>>( &self, name: S, mutability: Mutability, value: Value, )

Adds a reactive property with the given name and the given initial value.
Source§

fn add_property_by_type(&self, property: &PropertyType)

Adds a reactive property with the given name and the given initial value.
Source§

fn remove_property<S: Into<String>>(&self, name: S)

Removes the reactive property with the given name.
Source§

fn observe_with_handle<F>(&self, name: &str, subscriber: F, handle_id: u128)
where F: FnMut(&Value) + 'static + Send,

Observe the stream output flowing out of the stream of the property with the given name. The handle_id allows to remove the observer again.
Source§

fn remove_observer(&self, name: &str, handle_id: u128)

Removes the subscriber with the given handle_id from the stream of the property with the given name.
Source§

fn remove_observers(&self, name: &str)

Removes the subscribers of the property with the given name.
Source§

fn remove_all_observers(&self)

Removes all subscribers of all properties.
Source§

impl TryFrom<FlowInstance> for ReactiveFlow

Source§

type Error = ReactiveFlowConstructionError

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

fn try_from(flow_instance: FlowInstance) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ReactiveFlow> for FlowInstance

Source§

type Error = CreateFlowInstanceError

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

fn try_from( reactive_flow: ReactiveFlow, ) -> Result<Self, CreateFlowInstanceError>

Performs the conversion.
Source§

impl TypeDefinitionGetter for ReactiveFlow

Source§

fn type_definition(&self) -> TypeDefinition

Returns the type definition of the type.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> JsonSchemaIdGetter for T
where T: TypeDefinitionGetter,

§

fn json_schema_id(&self) -> JsonSchemaId

Returns the JSON Schema identifier ($id).
§

fn json_schema_id_property(&self) -> Value

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.