Struct tandem_http_server::MpcSession
source · pub struct MpcSession {
pub circuit: Circuit,
pub input_from_server: Vec<bool>,
pub request_headers: HashMap<String, String>,
}Expand description
Session information used by the server to start executing the MPC protocol.
Fields§
§circuit: CircuitThe circuit to execute using MPC.
input_from_server: Vec<bool>The server’s input, kept hidden from the client.
request_headers: HashMap<String, String>Optional headers for the client, which the client should set for every request.
This can be used to set headers which allow the server(s) to re-identify clients after the initial request and to e.g. ensure that every request during the MPC execution is routed to the same server instance.
Trait Implementations§
source§impl Clone for MpcSession
impl Clone for MpcSession
source§fn clone(&self) -> MpcSession
fn clone(&self) -> MpcSession
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 moreAuto Trait Implementations§
impl RefUnwindSafe for MpcSession
impl Send for MpcSession
impl Sync for MpcSession
impl Unpin for MpcSession
impl UnwindSafe for MpcSession
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self into a collection.