Trait protoflow_core::Port
source · pub trait Port {
// Required methods
fn id(&self) -> Option<PortID>;
fn state(&self) -> PortState;
// Provided methods
fn name(&self) -> Option<&str> { ... }
fn label(&self) -> Option<&str> { ... }
fn is_closed(&self) -> bool { ... }
fn is_open(&self) -> bool { ... }
fn is_connected(&self) -> bool { ... }
}
Expand description
The common interface for ports, whether for input or output.
Required Methods§
Provided Methods§
sourcefn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Checks whether this port is currently connected.