pub struct Graph { /* private fields */ }Expand description
Engine for co-ordinating execution of Nodes
Implementations§
Source§impl Graph
impl Graph
pub fn new( root_nodes: Vec<Rc<dyn Node>>, run_mode: RunMode, run_for: RunFor, ) -> Graph
pub fn new_with( root_nodes: Vec<Rc<dyn Node>>, tokio_runtime: Arc<Runtime>, run_mode: RunMode, run_for: RunFor, start_time: NanoTime, ) -> Graph
pub fn run(&mut self) -> Result<()>
pub fn print(&mut self) -> &mut Graph
pub fn export(&self, path: &str) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Graph
impl !RefUnwindSafe for Graph
impl !Send for Graph
impl !Sync for Graph
impl Unpin for Graph
impl !UnwindSafe for Graph
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> 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