pub enum ComponentKind {
Instance,
Source,
Query,
Reaction,
BootstrapProvider,
IdentityProvider,
}Expand description
Type of component in the graph
Variants§
Instance
The DrasiLib instance itself (root node)
Source
A data source
Query
A continuous query
Reaction
A reaction/output
BootstrapProvider
A bootstrap provider
IdentityProvider
An identity provider
Implementations§
Source§impl ComponentKind
impl ComponentKind
Sourcepub fn to_component_type(&self) -> Option<ComponentType>
pub fn to_component_type(&self) -> Option<ComponentType>
Convert to ComponentType for event emission.
Returns None only for the Instance kind (the root node), which has no
corresponding event type. All other component kinds map to a ComponentType.
Trait Implementations§
Source§impl Clone for ComponentKind
impl Clone for ComponentKind
Source§fn clone(&self) -> ComponentKind
fn clone(&self) -> ComponentKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentKind
impl Debug for ComponentKind
Source§impl<'de> Deserialize<'de> for ComponentKind
impl<'de> Deserialize<'de> for ComponentKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ComponentKind
impl Display for ComponentKind
Source§impl Hash for ComponentKind
impl Hash for ComponentKind
Source§impl PartialEq for ComponentKind
impl PartialEq for ComponentKind
Source§impl Serialize for ComponentKind
impl Serialize for ComponentKind
impl Eq for ComponentKind
impl StructuralPartialEq for ComponentKind
Auto Trait Implementations§
impl Freeze for ComponentKind
impl RefUnwindSafe for ComponentKind
impl Send for ComponentKind
impl Sync for ComponentKind
impl Unpin for ComponentKind
impl UnsafeUnpin for ComponentKind
impl UnwindSafe for ComponentKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.