pub struct Port {
pub name: Symbol,
pub shape: Option<Expr>,
pub mode: PortMode,
pub required: bool,
}Expand description
A named input or output port on a topology node.
Fields§
§name: SymbolPort name.
shape: Option<Expr>Optional port shape expression.
mode: PortModeWhether packets are values or streams.
required: boolWhether this port must be connected or provided.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnsafeUnpin for Port
impl UnwindSafe for Port
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