[][src]Struct zkinterface::reading::Messages

pub struct Messages {
    pub messages: Vec<Vec<u8>>,
    pub first_id: u64,
}

Collect buffers waiting to be read.

Fields

messages: Vec<Vec<u8>>first_id: u64

Methods

impl Messages[src]

pub fn new(first_id: u64) -> Messages[src]

first_id: The first variable ID to consider in received messages. Variables with lower IDs are ignored.

pub fn push_message(&mut self, buf: Vec<u8>) -> Result<(), String>[src]

pub fn read_file<P: AsRef<Path>>(&mut self, path: P) -> Result<(), String>[src]

pub fn last_circuit(&self) -> Option<Circuit>[src]

pub fn circuits(&self) -> Vec<Circuit>[src]

pub fn connection_variables(&self) -> Option<Vec<Variable>>[src]

pub fn private_variables(&self) -> Option<Vec<Variable>>[src]

impl Messages[src]

Important traits for R1CSIterator<'a>
pub fn iter_constraints(&self) -> R1CSIterator[src]

impl Messages[src]

Important traits for WitnessIterator<'a>
pub fn iter_assignment(&self) -> WitnessIterator[src]

Trait Implementations

impl Clone for Messages[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> IntoIterator for &'a Messages[src]

type Item = Root<'a>

The type of the elements being iterated over.

type IntoIter = MessageIterator<'a>

Which kind of iterator are we turning this into?

impl Debug for Messages[src]

Auto Trait Implementations

impl Send for Messages

impl Sync for Messages

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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