pub struct PortDescriptor {
pub direction: PortDirection,
pub name: Option<String>,
pub label: Option<String>,
pub type: Option<String>,
pub id: PortID,
pub state: PortState,
}
Expand description
A descriptor for a block port.
Fields§
§direction: PortDirection
The dataflow direction of this port.
name: Option<String>
The machine-readable name of this port, if any.
label: Option<String>
A human-readable label for this port, if any.
type: Option<String>
The data type for messages on this port.
id: PortID
The unique identifier for this port.
state: PortState
The current state of this port.
Implementations§
Trait Implementations§
Source§impl Clone for PortDescriptor
impl Clone for PortDescriptor
Source§fn clone(&self) -> PortDescriptor
fn clone(&self) -> PortDescriptor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PortDescriptor
impl Debug for PortDescriptor
Source§impl<T: Message> From<&OutputPort<T>> for PortDescriptor
impl<T: Message> From<&OutputPort<T>> for PortDescriptor
Source§fn from(port: &OutputPort<T>) -> Self
fn from(port: &OutputPort<T>) -> Self
Converts to this type from the input type.
Source§impl Hash for PortDescriptor
impl Hash for PortDescriptor
Source§impl MaybeLabeled for PortDescriptor
impl MaybeLabeled for PortDescriptor
Source§impl MaybeNamed for PortDescriptor
impl MaybeNamed for PortDescriptor
Source§impl Ord for PortDescriptor
impl Ord for PortDescriptor
Source§fn cmp(&self, other: &PortDescriptor) -> Ordering
fn cmp(&self, other: &PortDescriptor) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PortDescriptor
impl PartialEq for PortDescriptor
Source§impl PartialOrd for PortDescriptor
impl PartialOrd for PortDescriptor
Source§impl Port for PortDescriptor
impl Port for PortDescriptor
Source§fn is_connected(&self) -> bool
fn is_connected(&self) -> bool
Checks whether this port is currently connected.
Source§impl Serialize for PortDescriptor
impl Serialize for PortDescriptor
impl Eq for PortDescriptor
impl StructuralPartialEq for PortDescriptor
Auto Trait Implementations§
impl Freeze for PortDescriptor
impl RefUnwindSafe for PortDescriptor
impl Send for PortDescriptor
impl Sync for PortDescriptor
impl Unpin for PortDescriptor
impl UnwindSafe for PortDescriptor
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