pub struct InPort<T>where
T: SimObject,{
pub entity: Rc<Entity>,
/* private fields */
}Fields§
§entity: Rc<Entity>Implementations§
Source§impl<T> InPort<T>where
T: SimObject,
impl<T> InPort<T>where
T: SimObject,
pub fn new(parent: &Rc<Entity>, name: &str) -> Self
pub fn state(&self) -> PortStateResult<T>
pub fn get(&self) -> PortGetResult<T>
Sourcepub fn start_get(&self) -> PortStartGetResult<T>
pub fn start_get(&self) -> PortStartGetResult<T>
Must be matched with a finish_get to allow the OutPort to continue.
Sourcepub fn finish_get(&self)
pub fn finish_get(&self)
Must be matched with a start_get to consume the value.
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for InPort<T>
impl<T> !RefUnwindSafe for InPort<T>
impl<T> !Send for InPort<T>
impl<T> !Sync for InPort<T>
impl<T> Unpin for InPort<T>
impl<T> !UnwindSafe for InPort<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