pub struct PortContract { /* private fields */ }Expand description
Contract-side declaration for one node port.
Implementations§
Source§impl PortContract
impl PortContract
Sourcepub const fn new(
port_id: PortId,
direction: PortDirection,
schema: Option<SchemaRef>,
) -> Self
pub const fn new( port_id: PortId, direction: PortDirection, schema: Option<SchemaRef>, ) -> Self
Create a port contract.
Sourcepub const fn direction(&self) -> PortDirection
pub const fn direction(&self) -> PortDirection
Declared port direction.
Trait Implementations§
Source§impl Clone for PortContract
impl Clone for PortContract
Source§fn clone(&self) -> PortContract
fn clone(&self) -> PortContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PortContract
impl Debug for PortContract
Source§impl PartialEq for PortContract
impl PartialEq for PortContract
Source§fn eq(&self, other: &PortContract) -> bool
fn eq(&self, other: &PortContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PortContract
impl StructuralPartialEq for PortContract
Auto Trait Implementations§
impl Freeze for PortContract
impl RefUnwindSafe for PortContract
impl Send for PortContract
impl Sync for PortContract
impl Unpin for PortContract
impl UnsafeUnpin for PortContract
impl UnwindSafe for PortContract
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).