pub struct Edge {
pub id: EdgeId,
pub from: PortRef,
pub to: PortRef,
pub when: Option<Expr>,
pub transform: Option<Expr>,
pub as_name: Option<Symbol>,
pub priority: i64,
pub max_visits: Option<u32>,
pub buffer: Option<Expr>,
pub metadata: Vec<(Symbol, Expr)>,
}Expand description
A directed route from one node port to another node port.
Fields§
§id: EdgeIdStable edge id.
from: PortRefSource node port. Omitted source ports normalize to out.
to: PortRefDestination node port. Omitted destination ports normalize to in.
when: Option<Expr>Optional edge predicate expression.
transform: Option<Expr>Optional transform expression applied while routing.
as_name: Option<Symbol>Optional wrapper key for the routed value.
priority: i64Deterministic routing priority.
max_visits: Option<u32>Optional per-edge visit cap.
buffer: Option<Expr>Optional buffer policy expression.
metadata: Vec<(Symbol, Expr)>Extra edge metadata.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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