pub struct Router<T>where
T: SimObject + Routable,{
pub entity: Rc<Entity>,
/* private fields */
}Fields§
§entity: Rc<Entity>Implementations§
Source§impl<T> Router<T>where
T: SimObject + Routable,
impl<T> Router<T>where
T: SimObject + Routable,
pub fn new_and_register( engine: &Engine, parent: &Rc<Entity>, name: &str, num_egress: usize, algorithm: Box<dyn Route<T>>, ) -> Result<Rc<Self>, SimError>
pub fn connect_port_tx_i( &self, i: usize, port_state: PortStateResult<T>, ) -> SimResult
pub fn port_rx(&self) -> PortStateResult<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Router<T>
impl<T> !RefUnwindSafe for Router<T>
impl<T> !Send for Router<T>
impl<T> !Sync for Router<T>
impl<T> Unpin for Router<T>
impl<T> !UnwindSafe for Router<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