pub struct Connector {
pub name: String,
pub pattern: ConnectorPattern,
pub type_id: String,
pub domain_id: u32,
pub qos_profile: Option<String>,
pub basic_ports: Vec<BasicPort>,
pub extended_ports: Vec<ExtendedPort>,
}Expand description
Spec §7.3 — Connector-Definition.
Fields§
§name: StringConnector-Name.
pattern: ConnectorPatternConnector-Pattern.
type_id: StringTopic-Type (Repository-ID).
domain_id: u32Domain-ID.
qos_profile: Option<String>QoS-Profile-Name (Cross-Ref §7.4.3).
basic_ports: Vec<BasicPort>Provided Basic-Ports.
extended_ports: Vec<ExtendedPort>Provided Extended-Ports.
Implementations§
Source§impl Connector
impl Connector
Sourcepub fn new(
name: impl Into<String>,
pattern: ConnectorPattern,
type_id: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, pattern: ConnectorPattern, type_id: impl Into<String>, ) -> Self
Konstruktor.
Sourcepub fn with_qos_profile(self, profile: impl Into<String>) -> Self
pub fn with_qos_profile(self, profile: impl Into<String>) -> Self
Spec §7.4.3 — QoS-Profile binden.
Sourcepub fn with_domain(self, domain_id: u32) -> Self
pub fn with_domain(self, domain_id: u32) -> Self
Spec §7.4.1 — Domain-ID setzen.
Sourcepub fn add_basic_port(&mut self, p: BasicPort)
pub fn add_basic_port(&mut self, p: BasicPort)
Fuegt einen Basic-Port hinzu.
Sourcepub fn add_extended_port(&mut self, p: ExtendedPort)
pub fn add_extended_port(&mut self, p: ExtendedPort)
Fuegt einen Extended-Port hinzu.
Sourcepub fn port_count(&self) -> usize
pub fn port_count(&self) -> usize
Anzahl Ports gesamt.
Trait Implementations§
impl Eq for Connector
impl StructuralPartialEq for Connector
Auto Trait Implementations§
impl Freeze for Connector
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnsafeUnpin 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