pub enum NodeOutput<S: State> {
State(S),
Command(Command<S>),
}Expand description
What a node can return from its process() method.
Nodes can either return a simple state update (existing behavior)
or a Command for dynamic control flow.
Variants§
State(S)
Regular state update (existing behavior).
Command(Command<S>)
A command controlling flow + state.
Trait Implementations§
Source§impl<S: Clone + State> Clone for NodeOutput<S>
impl<S: Clone + State> Clone for NodeOutput<S>
Source§fn clone(&self) -> NodeOutput<S>
fn clone(&self) -> NodeOutput<S>
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 moreAuto Trait Implementations§
impl<S> Freeze for NodeOutput<S>where
S: Freeze,
impl<S> RefUnwindSafe for NodeOutput<S>where
S: RefUnwindSafe,
impl<S> Send for NodeOutput<S>
impl<S> Sync for NodeOutput<S>
impl<S> Unpin for NodeOutput<S>where
S: Unpin,
impl<S> UnsafeUnpin for NodeOutput<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for NodeOutput<S>where
S: UnwindSafe,
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