Skip to main content

PortRef

Trait PortRef 

Source
pub trait PortRef {
    // Required methods
    fn id(&self) -> PortId;
    fn name(&self) -> &str;
    fn kind(&self) -> PortKind;
}
Expand description

Common read accessors over a typed port, independent of element type or direction. Implemented by both Inlet and Outlet; used by handler helpers (e.g. set_handler) that only need a port’s id, name, and kind.

Required Methods§

Source

fn id(&self) -> PortId

Source

fn name(&self) -> &str

Source

fn kind(&self) -> PortKind

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: 'static> PortRef for Inlet<T>

Source§

impl<T: 'static> PortRef for Outlet<T>