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
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Connector
impl<'de> Deserialize<'de> for Connector
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more