pub struct FunctionalFabric<T>where
T: SimObject + Routable,{ /* private fields */ }Implementations§
Source§impl<T> FunctionalFabric<T>where
T: SimObject + Routable,
impl<T> FunctionalFabric<T>where
T: SimObject + Routable,
Sourcepub fn new_and_register_with_renames(
engine: &Engine,
clock: &Clock,
parent: &Rc<Entity>,
name: &str,
aka: Option<&Aka>,
config: Rc<FabricConfig>,
) -> Result<Rc<Self>, SimError>
pub fn new_and_register_with_renames( engine: &Engine, clock: &Clock, parent: &Rc<Entity>, name: &str, aka: Option<&Aka>, config: Rc<FabricConfig>, ) -> Result<Rc<Self>, SimError>
Create and register a new fabric.
The total number of ingress/egress ports must be at least two, otherwise there are no valid routes and an error will be returned.
Sourcepub fn new_and_register(
engine: &Engine,
clock: &Clock,
parent: &Rc<Entity>,
name: &str,
config: Rc<FabricConfig>,
) -> Result<Rc<Self>, SimError>
pub fn new_and_register( engine: &Engine, clock: &Clock, parent: &Rc<Entity>, name: &str, config: Rc<FabricConfig>, ) -> Result<Rc<Self>, SimError>
Create and register a new fabric.
The total number of ingress/egress ports must be at least two, otherwise there are no valid routes and an error will be returned.
Trait Implementations§
Source§impl<T> Display for FunctionalFabric<T>where
T: SimObject + Routable,
impl<T> Display for FunctionalFabric<T>where
T: SimObject + Routable,
Source§impl<T> Fabric<T> for FunctionalFabric<T>where
T: SimObject + Routable,
impl<T> Fabric<T> for FunctionalFabric<T>where
T: SimObject + Routable,
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
Source§impl<T> GetEntity for FunctionalFabric<T>where
T: SimObject + Routable,
impl<T> GetEntity for FunctionalFabric<T>where
T: SimObject + Routable,
Source§impl<T> Runnable for FunctionalFabric<T>where
T: SimObject + Routable,
impl<T> Runnable for FunctionalFabric<T>where
T: SimObject + Routable,
Auto Trait Implementations§
impl<T> !Freeze for FunctionalFabric<T>
impl<T> !RefUnwindSafe for FunctionalFabric<T>
impl<T> !Send for FunctionalFabric<T>
impl<T> !Sync for FunctionalFabric<T>
impl<T> !UnwindSafe for FunctionalFabric<T>
impl<T> Unpin for FunctionalFabric<T>
impl<T> UnsafeUnpin for FunctionalFabric<T>
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