pub struct EthernetLink<T>where
T: SimObject,{ /* private fields */ }Implementations§
Source§impl<T> EthernetLink<T>where
T: SimObject,
impl<T> EthernetLink<T>where
T: SimObject,
pub fn new_and_register_with_renames( engine: &Engine, clock: &Clock, parent: &Rc<Entity>, name: &str, aka: Option<&Aka>, ) -> Result<Rc<Self>, SimError>
pub fn new_and_register( engine: &Engine, clock: &Clock, parent: &Rc<Entity>, name: &str, ) -> Result<Rc<Self>, SimError>
Sourcepub fn set_delay(&self, delay: usize) -> SimResult
pub fn set_delay(&self, delay: usize) -> SimResult
Change the delay value. Can only be done before the simulation has started.
pub fn connect_port_tx_a(&self, port_state: PortStateResult<T>) -> SimResult
pub fn connect_port_tx_b(&self, port_state: PortStateResult<T>) -> SimResult
pub fn port_rx_a(&self) -> PortStateResult<T>
pub fn port_rx_b(&self) -> PortStateResult<T>
Trait Implementations§
Source§impl<T> Display for EthernetLink<T>where
T: SimObject,
impl<T> Display for EthernetLink<T>where
T: SimObject,
Source§impl<T> GetEntity for EthernetLink<T>where
T: SimObject,
impl<T> GetEntity for EthernetLink<T>where
T: SimObject,
Source§impl<T> Runnable for EthernetLink<T>where
T: SimObject,
impl<T> Runnable for EthernetLink<T>where
T: SimObject,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for EthernetLink<T>
impl<T> !Send for EthernetLink<T>
impl<T> !Sync for EthernetLink<T>
impl<T> !UnwindSafe for EthernetLink<T>
impl<T> Freeze for EthernetLink<T>
impl<T> Unpin for EthernetLink<T>
impl<T> UnsafeUnpin for EthernetLink<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