Enum ark_mpc::error::MpcNetworkError
source · pub enum MpcNetworkError {
SendError(String),
RecvError(String),
ConnectionSetupError(SetupError),
ConnectionTeardownError,
NetworkUninitialized,
SerializationError(String),
}Expand description
An error on the MPC network during communication
Variants§
SendError(String)
An error sending a value to the counterparty
RecvError(String)
An error receiving a value from the counterparty
ConnectionSetupError(SetupError)
An error setting up the underlying connection
ConnectionTeardownError
An error tearing down the underlying connection
NetworkUninitialized
An error emitted when a network operation is performed on a network
that has not yet been connected
SerializationError(String)
An error serializing a value
Trait Implementations§
source§impl Clone for MpcNetworkError
impl Clone for MpcNetworkError
source§fn clone(&self) -> MpcNetworkError
fn clone(&self) -> MpcNetworkError
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§impl Debug for MpcNetworkError
impl Debug for MpcNetworkError
source§impl Display for MpcNetworkError
impl Display for MpcNetworkError
source§impl Error for MpcNetworkError
impl Error for MpcNetworkError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for MpcNetworkError
impl PartialEq for MpcNetworkError
source§fn eq(&self, other: &MpcNetworkError) -> bool
fn eq(&self, other: &MpcNetworkError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for MpcNetworkError
impl StructuralEq for MpcNetworkError
impl StructuralPartialEq for MpcNetworkError
Auto Trait Implementations§
impl RefUnwindSafe for MpcNetworkError
impl Send for MpcNetworkError
impl Sync for MpcNetworkError
impl Unpin for MpcNetworkError
impl UnwindSafe for MpcNetworkError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more