pub struct Delay<T>where
T: SimObject,{
pub entity: Rc<Entity>,
/* private fields */
}Fields§
§entity: Rc<Entity>Implementations§
Source§impl<T> Delay<T>where
T: SimObject,
impl<T> Delay<T>where
T: SimObject,
pub fn new_and_register( engine: &Engine, parent: &Rc<Entity>, name: &str, clock: Clock, spawner: Spawner, delay_ticks: usize, ) -> Result<Rc<Self>, SimError>
pub fn set_error_on_output_stall(&self)
pub fn connect_port_tx(&self, port_state: PortStateResult<T>) -> SimResult
pub fn port_rx(&self) -> PortStateResult<T>
pub fn set_delay(&self, delay_ticks: usize) -> SimResult
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Delay<T>
impl<T> !RefUnwindSafe for Delay<T>
impl<T> !Send for Delay<T>
impl<T> !Sync for Delay<T>
impl<T> Unpin for Delay<T>
impl<T> !UnwindSafe for Delay<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