pub enum ConfigGraphs {
Simple(CuGraph),
Missions(HashMap<String, CuGraph>),
}
Variants§
Implementations§
Source§impl ConfigGraphs
impl ConfigGraphs
pub fn get_all_nodes(&self, mission_id: Option<&str>) -> Vec<(NodeId, &Node)>
pub fn node_indices(&self, mission_id: Option<&str>) -> Vec<NodeIndex>
pub fn get_node_input_msg_type( &self, node_id: &str, mission_id: Option<&str>, ) -> Option<String>
pub fn add_node( &mut self, node: Node, mission_id: Option<&str>, ) -> CuResult<NodeId>
pub fn connect_ext( &mut self, source: NodeId, target: NodeId, msg_type: &str, store: Option<bool>, mission_id: Option<&str>, missions: Option<Vec<String>>, ) -> CuResult<()>
pub fn get_graph(&self, mission_id: Option<&str>) -> CuResult<&CuGraph>
Sourcepub fn get_node(
&self,
node_id: NodeId,
mission_id: Option<&str>,
) -> Option<&Node>
pub fn get_node( &self, node_id: NodeId, mission_id: Option<&str>, ) -> Option<&Node>
Get the node with the given id. If mission_id is provided, get the node from that mission’s graph. Otherwise get the node from the simple graph.
pub fn get_node_mut( &mut self, node_id: NodeId, mission_id: Option<&str>, ) -> Option<&mut Node>
pub fn get_node_output_msg_type( &self, node_id: &str, mission_id: Option<&str>, ) -> Option<String>
pub fn get_graph_mut( &mut self, mission_id: Option<&str>, ) -> CuResult<&mut CuGraph>
pub fn get_edge_weight( &self, index: usize, mission_id: Option<&str>, ) -> Option<Cnx>
pub fn add_mission(&mut self, mission_id: &str) -> CuResult<()>
Trait Implementations§
Source§impl Clone for ConfigGraphs
impl Clone for ConfigGraphs
Source§fn clone(&self) -> ConfigGraphs
fn clone(&self) -> ConfigGraphs
Returns a copy 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 Freeze for ConfigGraphs
impl RefUnwindSafe for ConfigGraphs
impl Send for ConfigGraphs
impl Sync for ConfigGraphs
impl Unpin for ConfigGraphs
impl UnwindSafe for ConfigGraphs
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