pub enum EdgeDirection {
Outgoing {
from_node: ExecutionId,
},
Incoming {
to_node: ExecutionId,
},
}Expand description
Direction marker for crate::engine_backend::EngineBackend::list_edges.
Carries the subject execution whose adjacency side the caller wants
to list — mirrors the internal AdjacencySide + subject_eid pair
the ff-sdk free-fn list_edges_from_set already uses. Keeping
direction + subject fused in one enum means the trait method has a
single direction parameter rather than a (side, eid) pair, and
the backend impl can’t forget one of the two.
Outgoing { from_node }— the caller wants every edge whoseupstream_execution_id == from_node. Corresponds to theout:<execution_id>adjacency SET under the execution’s flow partition.Incoming { to_node }— the caller wants every edge whosedownstream_execution_id == to_node. Corresponds to thein:<execution_id>adjacency SET under the execution’s flow partition.
Variants§
Outgoing
Edges leaving from_node — out: adjacency SET.
Fields
from_node: ExecutionIdThe subject execution whose outgoing edges to list.
Incoming
Edges landing on to_node — in: adjacency SET.
Fields
to_node: ExecutionIdThe subject execution whose incoming edges to list.
Implementations§
Source§impl EdgeDirection
impl EdgeDirection
Sourcepub fn subject(&self) -> &ExecutionId
pub fn subject(&self) -> &ExecutionId
Return the subject execution id regardless of direction. Shared
helper for backend impls that need the execution id for the
initial HGET exec_core.flow_id lookup (flow routing) before
they know which adjacency SET to read.
Trait Implementations§
Source§impl Clone for EdgeDirection
impl Clone for EdgeDirection
Source§fn clone(&self) -> EdgeDirection
fn clone(&self) -> EdgeDirection
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more