Enum ConstantOpIO

Source
pub enum ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,
{ None, Output0(T), }

Variants§

§

None

§

Output0(T)

Implementations§

Trait Implementations§

Source§

impl<T> Clone for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + Clone,

Source§

fn clone(&self) -> ConstantOpIO<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Default for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T> Operator<ConstantOpIO<T>> for ConstantOp<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

fn output_port_connection_required(&self, port: usize) -> bool

NOTE: typically, we do not require that outputs from any given operator be connected. perhaps this design choice may be changed in the future

Source§

fn opcode(&self) -> Arc<dyn OpCode>

Returns the operation code, which can be used to inform specialized handling or diagnostics.
Source§

fn input_count(&self) -> usize

How many actual inputs does this operator need?
Source§

fn output_count(&self) -> usize

How many outputs does this operator produce?
Source§

fn input_port_type_str(&self, port: usize) -> Option<&'static str>

used by the network! dag compiler to verify that the input port of one operator is compatible with the data flowing into it from the output port of another operator
Source§

fn output_port_type_str(&self, port: usize) -> Option<&'static str>

used by the network! dag compiler to verify that the output port of one operator is compatible with the data required by the input port of its downstream operator
Source§

fn input_port_connection_required(&self, port: usize) -> bool

used by the network! dag compiler to verify that this input port needs an output connection
Source§

fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, execute_inputs: [Option<&'life1 ConstantOpIO<T>>; 4], execute_outputs: &'life2 mut [Option<ConstantOpIO<T>>; 4], ) -> Pin<Box<dyn Future<Output = NetResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

The big 4×4 method: You receive up to 4 inputs and must fill up to 4 outputs.
Source§

impl<T> PartialEq for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + PartialEq,

Source§

fn eq(&self, other: &ConstantOpIO<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T> PortTryFrom0<()> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

impl<T> PortTryFrom1<()> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

impl<T> PortTryFrom2<()> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

impl<T> PortTryFrom3<()> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

impl<T> PortTryInto0<T> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

type Error = NetworkError

Source§

fn port_try_into0(self) -> Result<T, Self::Error>

Convert self into a T, using port as needed.
Source§

impl<'a, T> PortTryInto0Any for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + 'a, ConstantOpIO<T>: 'a,

Source§

impl<T> PortTryInto1<()> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

type Error = NetworkError

Source§

fn port_try_into1(self) -> Result<(), Self::Error>

Convert self into a T, using port as needed.
Source§

impl<'a, T> PortTryInto1Any for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + 'a, ConstantOpIO<T>: 'a,

Source§

impl<T> PortTryInto2<()> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

type Error = NetworkError

Source§

fn port_try_into2(self) -> Result<(), Self::Error>

Convert self into a T, using port as needed.
Source§

impl<'a, T> PortTryInto2Any for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + 'a, ConstantOpIO<T>: 'a,

Source§

impl<T> PortTryInto3<()> for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Source§

type Error = NetworkError

Source§

fn port_try_into3(self) -> Result<(), Self::Error>

Convert self into a T, using port as needed.
Source§

impl<'a, T> PortTryInto3Any for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + 'a, ConstantOpIO<T>: 'a,

Source§

impl<T> Eq for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq + Eq,

Source§

impl<T> StructuralPartialEq for ConstantOpIO<T>
where T: Display + Copy + Debug + Send + Sync + PartialEq,

Auto Trait Implementations§

§

impl<T> Freeze for ConstantOpIO<T>
where T: Freeze,

§

impl<T> RefUnwindSafe for ConstantOpIO<T>
where T: RefUnwindSafe,

§

impl<T> Send for ConstantOpIO<T>

§

impl<T> Sync for ConstantOpIO<T>

§

impl<T> Unpin for ConstantOpIO<T>
where T: Unpin,

§

impl<T> UnwindSafe for ConstantOpIO<T>
where T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Erasable for T

Source§

const ACK_1_1_0: bool = true

Whether this implementor has acknowledged the 1.1.0 update to unerase’s documented implementation requirements. Read more
Source§

unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>

Unerase this erased pointer. Read more
Source§

fn erase(this: NonNull<Self>) -> NonNull<Erased>

Turn this erasable pointer into an erased pointer. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more