pub struct InformerStats { /* private fields */ }Expand description
The statistics revealed by the informer.
Implementations§
Source§impl InformerStats
impl InformerStats
Sourcepub fn num_garbler_inputs(&self) -> usize
pub fn num_garbler_inputs(&self) -> usize
Number of garbler inputs in the fancy computation.
Sourcepub fn garbler_input_moduli(&self) -> Vec<u16>
pub fn garbler_input_moduli(&self) -> Vec<u16>
Moduli of garbler inputs in the fancy computation.
Sourcepub fn num_evaluator_inputs(&self) -> usize
pub fn num_evaluator_inputs(&self) -> usize
Number of evaluator inputs in the fancy computation.
Sourcepub fn evaluator_input_moduli(&self) -> Vec<u16>
pub fn evaluator_input_moduli(&self) -> Vec<u16>
Moduli of evaluator inputs in the fancy computation.
Sourcepub fn num_consts(&self) -> usize
pub fn num_consts(&self) -> usize
Number of constants in the fancy computation.
Sourcepub fn num_outputs(&self) -> usize
pub fn num_outputs(&self) -> usize
Number of outputs in the fancy computation.
Sourcepub fn num_output_ciphertexts(&self) -> usize
pub fn num_output_ciphertexts(&self) -> usize
Number of output ciphertexts.
Sourcepub fn num_ciphertexts(&self) -> usize
pub fn num_ciphertexts(&self) -> usize
Number of ciphertexts in the fancy computation.
Trait Implementations§
Source§impl Clone for InformerStats
impl Clone for InformerStats
Source§fn clone(&self) -> InformerStats
fn clone(&self) -> InformerStats
Returns a duplicate of the value. Read more
1.0.0 · 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 InformerStats
impl Debug for InformerStats
Source§impl Display for InformerStats
impl Display for InformerStats
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Print information about the fancy computation.
For example, below is the output when run on circuits/AES-non-expanded.txt:
computation info:
garbler inputs: 128 // comms cost: 16 Kb
evaluator inputs: 128 // comms cost: 48 Kb
outputs: 128
output ciphertexts: 256 // comms cost: 32 Kb
constants: 1 // comms cost: 0.125 Kb
additions: 25124
subtractions: 1692
cmuls: 0
projections: 0
multiplications: 6800
ciphertexts: 13600 // comms cost: 1.66 Mb (1700.00 Kb)
total comms cost: 1.75 Mb // 1700.00 KbAuto Trait Implementations§
impl Freeze for InformerStats
impl RefUnwindSafe for InformerStats
impl Send for InformerStats
impl Sync for InformerStats
impl Unpin for InformerStats
impl UnwindSafe for InformerStats
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IsSameType<T> for T
impl<T> IsSameType<T> for T
§type EqualityProposition = TrueEqualityProposition
type EqualityProposition = TrueEqualityProposition
The [
EqualityProposition] that Self == T