pub enum NodeKind<'a> {
Standard(&'a String),
Runtime(&'a RuntimeNode),
Operator(&'a SingleOperatorDefinition),
Ros2Bridge(&'a Ros2BridgeConfig),
Module(&'a String),
}Expand description
The implementation kind of a Node, returned by NodeExt::kind.
Each variant borrows the one exclusive field that was set on the node.
Variants§
Standard(&'a String)
A custom node run from an executable path.
Runtime(&'a RuntimeNode)
A dora runtime node hosting one or more in-process operators.
Operator(&'a SingleOperatorDefinition)
A node defined by a single inline operator.
Ros2Bridge(&'a Ros2BridgeConfig)
A ROS2 bridge node.
Module(&'a String)
A module (sub-dataflow) reference — must be expanded before resolution.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for NodeKind<'a>
impl<'a> Freeze for NodeKind<'a>where
&'a String: Freeze,
&'a RuntimeNode: Freeze,
&'a SingleOperatorDefinition: Freeze,
&'a Ros2BridgeConfig: Freeze,
impl<'a> Move for NodeKind<'a>
impl<'a> RefUnwindSafe for NodeKind<'a>
impl<'a> Send for NodeKind<'a>where
&'a String: Send,
&'a RuntimeNode: Send,
&'a SingleOperatorDefinition: Send,
&'a Ros2BridgeConfig: Send,
impl<'a> Sync for NodeKind<'a>where
RawVecInner: Sync,
NodeRef<Owned, DataId, Input, LeafOrInternal>: Sync,
BoxRaw<(DataId, Input)>: Sync,
NodeRef<Owned, DataId, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(DataId, SetValZST)>: Sync,
NodeRef<Owned, DataId, String, LeafOrInternal>: Sync,
BoxRaw<(DataId, String)>: Sync,
NodeRef<Owned, DataId, OutputFraming, LeafOrInternal>: Sync,
BoxRaw<(DataId, OutputFraming)>: Sync,
NodeRef<Owned, DataId, Vec<String>, LeafOrInternal>: Sync,
BoxRaw<(DataId, Vec<String>)>: Sync,
impl<'a> Unpin for NodeKind<'a>where
&'a String: Unpin,
&'a RuntimeNode: Unpin,
&'a SingleOperatorDefinition: Unpin,
&'a Ros2BridgeConfig: Unpin,
impl<'a> UnsafeUnpin for NodeKind<'a>where
&'a String: UnsafeUnpin,
&'a RuntimeNode: UnsafeUnpin,
&'a SingleOperatorDefinition: UnsafeUnpin,
&'a Ros2BridgeConfig: UnsafeUnpin,
impl<'a> UnwindSafe for NodeKind<'a>where
&'a String: UnwindSafe,
&'a RuntimeNode: UnwindSafe,
&'a SingleOperatorDefinition: UnwindSafe,
&'a Ros2BridgeConfig: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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