pub struct NodeContract { /* private fields */ }Expand description
Contract metadata for one node.
Implementations§
Source§impl NodeContract
impl NodeContract
Sourcepub fn new(
id: NodeId,
ports: impl Into<Vec<PortContract>>,
execution_mode: ExecutionMode,
determinism: Determinism,
retry: RetryDisposition,
) -> Result<Self, ContractValidationError>
pub fn new( id: NodeId, ports: impl Into<Vec<PortContract>>, execution_mode: ExecutionMode, determinism: Determinism, retry: RetryDisposition, ) -> Result<Self, ContractValidationError>
Sourcepub fn ports(&self) -> &[PortContract]
pub fn ports(&self) -> &[PortContract]
Declared ports.
Sourcepub const fn execution_mode(&self) -> ExecutionMode
pub const fn execution_mode(&self) -> ExecutionMode
Declared execution mode.
Sourcepub const fn determinism(&self) -> Determinism
pub const fn determinism(&self) -> Determinism
Declared determinism.
Sourcepub const fn retry(&self) -> RetryDisposition
pub const fn retry(&self) -> RetryDisposition
Declared retry disposition.
Trait Implementations§
Source§impl Clone for NodeContract
impl Clone for NodeContract
Source§fn clone(&self) -> NodeContract
fn clone(&self) -> NodeContract
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 NodeContract
impl Debug for NodeContract
Source§impl PartialEq for NodeContract
impl PartialEq for NodeContract
Source§fn eq(&self, other: &NodeContract) -> bool
fn eq(&self, other: &NodeContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NodeContract
impl StructuralPartialEq for NodeContract
Auto Trait Implementations§
impl Freeze for NodeContract
impl RefUnwindSafe for NodeContract
impl Send for NodeContract
impl Sync for NodeContract
impl Unpin for NodeContract
impl UnsafeUnpin for NodeContract
impl UnwindSafe for NodeContract
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).