pub trait Edge {
// Required methods
fn source(&self) -> u64;
fn destination(&self) -> u64;
}Expand description
This trait needs to be implemented by the type that represents a connection.
Read more about why this is necessary here.
Example implementation for microgrid API v0.17:
ⓘ
impl frequenz_microgrid_component_graph::Edge
for common::v1::microgrid::components::ComponentConnection
{
fn source(&self) -> u64 {
self.source_component_id
}
fn destination(&self) -> u64 {
self.destination_component_id
}
}Required Methods§
Sourcefn destination(&self) -> u64
fn destination(&self) -> u64
Returns the destination component id of the connection.