Enum race_api::types::SecretShare
source · pub enum SecretShare {
Random {
from_addr: String,
to_addr: Option<String>,
random_id: RandomId,
index: usize,
secret: Vec<u8>,
},
Answer {
from_addr: String,
decision_id: DecisionId,
secret: Vec<u8>,
},
}Variants§
Implementations§
pub fn new_for_random( random_id: RandomId, index: usize, from_addr: Addr, to_addr: Option<Addr>, secret: SecretKey ) -> Self
pub fn new_for_answer( decision_id: DecisionId, from_addr: Addr, secret: SecretKey ) -> Self
Trait Implementations§
source§fn clone(&self) -> SecretShare
fn clone(&self) -> SecretShare
Returns a copy 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§fn eq(&self, other: &SecretShare) -> bool
fn eq(&self, other: &SecretShare) -> bool
This method tests for
self and other values to be equal, and is used
by ==.Auto Trait Implementations§
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