pub struct ExecutionContext<S, N>{ /* private fields */ }Implementations§
Source§impl<S, N> ExecutionContext<S, N>
impl<S, N> ExecutionContext<S, N>
pub fn new(config: MpcConfig<S>, network: N) -> Result<Self, Whatever>
pub fn execution_state(&self) -> &ExecutionState
pub async fn handshake(&mut self) -> Result<(SendLen, RecvLen), Whatever>
pub async fn do_offline(&mut self) -> Result<(SendLen, RecvLen), Whatever>
pub fn prepare_input<I>(&mut self, user_inputs: I) -> Result<(), Whatever>
pub async fn do_online(&mut self) -> Result<(SendLen, RecvLen), Whatever>
pub fn dump_wires_with_filter<P>(&self, predicate: P)
Trait Implementations§
Auto Trait Implementations§
impl<S, N> Freeze for ExecutionContext<S, N>
impl<S, N> RefUnwindSafe for ExecutionContext<S, N>where
N: RefUnwindSafe,
S: RefUnwindSafe,
<S as MpcScheme>::Context: RefUnwindSafe,
<S as MpcScheme>::Wire: RefUnwindSafe,
<S as MpcScheme>::Operation: RefUnwindSafe,
impl<S, N> Send for ExecutionContext<S, N>
impl<S, N> Sync for ExecutionContext<S, N>
impl<S, N> Unpin for ExecutionContext<S, N>
impl<S, N> UnsafeUnpin for ExecutionContext<S, N>
impl<S, N> UnwindSafe for ExecutionContext<S, N>where
N: UnwindSafe,
<S as MpcScheme>::Wire: UnwindSafe,
S: UnwindSafe,
<S as MpcScheme>::Context: UnwindSafe,
<S as MpcScheme>::Operation: UnwindSafe,
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> 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