Skip to main content

NodeArg

Trait NodeArg 

Source
pub trait NodeArg:
    Send
    + Sync
    + DynClone
    + 'static { }
Available on crate feature swiftide-tasks only.
Expand description

A value that can flow into or out of a TaskNode.

Task inputs, outputs, transition payloads, and join payloads all use this bound so they can be moved safely across async task execution.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> NodeArg for T
where T: Send + Sync + Debug + 'static + Clone,