pub trait Route<T>where T: Routable,{ // Required method fn route(&self, object: &T) -> Result<usize, SimError>; }
Trait required for routing algorithms to implement.
Given an object, return the index of the egress port to map the object to.