pub struct CreditIssuer<T>where
T: SimObject,{
pub entity: Rc<Entity>,
/* private fields */
}Fields§
§entity: Rc<Entity>Implementations§
Source§impl<T> CreditIssuer<T>where
T: SimObject,
impl<T> CreditIssuer<T>where
T: SimObject,
pub fn new_and_register( engine: &Engine, parent: &Rc<Entity>, ) -> Result<Rc<Self>, SimError>
pub fn connect_port_tx(&self, port_state: PortStateResult<T>) -> SimResult
pub fn port_rx(&self) -> PortStateResult<T>
pub fn connect_port_credit_tx( &self, port_state: PortStateResult<Credit>, ) -> SimResult
Trait Implementations§
Source§impl<T> Display for CreditIssuer<T>where
T: SimObject,
impl<T> Display for CreditIssuer<T>where
T: SimObject,
Source§impl<T> Runnable for CreditIssuer<T>where
T: SimObject,
impl<T> Runnable for CreditIssuer<T>where
T: SimObject,
Auto Trait Implementations§
impl<T> !Freeze for CreditIssuer<T>
impl<T> !RefUnwindSafe for CreditIssuer<T>
impl<T> !Send for CreditIssuer<T>
impl<T> !Sync for CreditIssuer<T>
impl<T> Unpin for CreditIssuer<T>
impl<T> !UnwindSafe for CreditIssuer<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