[][src]Struct zkinterface::zkinterface_generated::zkinterface::Command

pub struct Command<'a> {
    pub _tab: Table<'a>,
}

Optional: Command messages can be used to request actions from the receiver. This makes it possible to write code that works in different environments. Commands and parameters can be passed over the same byte stream as other messages; if so Command must be the first message. This reduces the need for environment-specific methods (it can replace CLI --flags, etc).

Fields

_tab: Table<'a>

Implementations

impl<'a> Command<'a>[src]

pub fn init_from_table(table: Table<'a>) -> Self[src]

pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr>(
    _fbb: &'mut_bldr mut FlatBufferBuilder<'bldr>,
    args: &'args CommandArgs<'args>
) -> WIPOffset<Command<'bldr>>
[src]

pub const VT_CONSTRAINTS_GENERATION: VOffsetT[src]

pub const VT_WITNESS_GENERATION: VOffsetT[src]

pub const VT_PARAMETERS: VOffsetT[src]

pub fn constraints_generation(&self) -> bool[src]

For gadget flows. Request the generation of a constraint system (or part thereof). If true, this must be followed by a Circuit. The response must be another Circuit message with a greater free_variable_id followed by one or more ConstraintSystem messages.

pub fn witness_generation(&self) -> bool[src]

For gadget flows. Request the generation of a witness (or part thereof). If true, this must be followed by a Circuit, and the connections variables must contain input values. The response must be another Circuit message, with a greater free_variable_id, with output values in connections variables, followed by one or more Witness messages.

pub fn parameters(&self) -> Option<Vector<'a, ForwardsUOffset<KeyValue<'a>>>>[src]

Optional: Any complementary parameter that may be useful.

Trait Implementations

impl<'a> Clone for Command<'a>[src]

impl<'a> Copy for Command<'a>[src]

impl<'a> Debug for Command<'a>[src]

impl<'a> Follow<'a> for Command<'a>[src]

type Inner = Command<'a>

impl<'a> PartialEq<Command<'a>> for Command<'a>[src]

impl<'a> StructuralPartialEq for Command<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Command<'a>

impl<'a> Send for Command<'a>

impl<'a> Sync for Command<'a>

impl<'a> Unpin for Command<'a>

impl<'a> UnwindSafe for Command<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.