pub trait Fabric<T>: GetEntity + Displaywhere
T: SimObject + Routable,{
// Required methods
fn connect_port_egress_i(
&self,
i: usize,
port_state: PortStateResult<T>,
) -> SimResult;
fn port_ingress_i(&self, i: usize) -> PortStateResult<T>;
fn col_row_port_to_fabric_port_index(
&self,
col: usize,
row: usize,
port: usize,
) -> usize;
}Required Methods§
fn connect_port_egress_i( &self, i: usize, port_state: PortStateResult<T>, ) -> SimResult
fn port_ingress_i(&self, i: usize) -> PortStateResult<T>
fn col_row_port_to_fabric_port_index( &self, col: usize, row: usize, port: usize, ) -> usize
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".