pub struct Connector { /* private fields */ }
Expand description
Connectors are configured to connect models through their ports. During simulation, models exchange messages (as per the Discrete Event System Specification) via these connectors.
Implementations§
source§impl Connector
impl Connector
pub fn new( id: String, source_id: String, target_id: String, source_port: String, target_port: String ) -> Self
sourcepub fn source_id(&self) -> &str
pub fn source_id(&self) -> &str
This accessor method returns the model ID of the connector source model.
sourcepub fn source_port(&self) -> &str
pub fn source_port(&self) -> &str
This accessor method returns the source port of the connector.
sourcepub fn target_id(&self) -> &str
pub fn target_id(&self) -> &str
This accessor method returns the model ID of the connector target model.
sourcepub fn target_port(&self) -> &str
pub fn target_port(&self) -> &str
This accessor method returns the target port of the connector.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Connector
impl<'de> Deserialize<'de> for Connector
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnwindSafe for Connector
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