pub enum TwopacError {
IoError(Error),
OtError(Error),
GarblerError(GarblerError),
EvaluatorError(EvaluatorError),
FancyError(FancyError),
}Expand description
Errors produced by twopac.
Variants§
IoError(Error)
An I/O error has occurred.
OtError(Error)
An oblivious transfer error has occurred.
GarblerError(GarblerError)
The garbler produced an error.
EvaluatorError(EvaluatorError)
The evaluator produced an error.
FancyError(FancyError)
Processing the garbled circuit produced an error.
Trait Implementations§
Source§impl Debug for TwopacError
impl Debug for TwopacError
Source§impl Display for TwopacError
impl Display for TwopacError
Source§impl Error for TwopacError
impl Error for TwopacError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<Error> for TwopacError
impl From<Error> for TwopacError
Source§fn from(e: Error) -> TwopacError
fn from(e: Error) -> TwopacError
Converts to this type from the input type.
Source§impl From<Error> for TwopacError
impl From<Error> for TwopacError
Source§fn from(e: Error) -> TwopacError
fn from(e: Error) -> TwopacError
Converts to this type from the input type.
Source§impl From<EvaluatorError> for TwopacError
impl From<EvaluatorError> for TwopacError
Source§fn from(e: EvaluatorError) -> TwopacError
fn from(e: EvaluatorError) -> TwopacError
Converts to this type from the input type.
Source§impl From<FancyError> for TwopacError
impl From<FancyError> for TwopacError
Source§fn from(e: FancyError) -> TwopacError
fn from(e: FancyError) -> TwopacError
Converts to this type from the input type.
Source§impl From<GarblerError> for TwopacError
impl From<GarblerError> for TwopacError
Source§fn from(e: GarblerError) -> TwopacError
fn from(e: GarblerError) -> TwopacError
Converts to this type from the input type.
Source§impl From<TwopacError> for EvaluatorError
impl From<TwopacError> for EvaluatorError
Source§fn from(e: TwopacError) -> EvaluatorError
fn from(e: TwopacError) -> EvaluatorError
Converts to this type from the input type.
Source§impl From<TwopacError> for GarblerError
impl From<TwopacError> for GarblerError
Source§fn from(e: TwopacError) -> GarblerError
fn from(e: TwopacError) -> GarblerError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TwopacError
impl !RefUnwindSafe for TwopacError
impl Send for TwopacError
impl Sync for TwopacError
impl Unpin for TwopacError
impl !UnwindSafe for TwopacError
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§impl<T> IsSameType<T> for T
impl<T> IsSameType<T> for T
§type EqualityProposition = TrueEqualityProposition
type EqualityProposition = TrueEqualityProposition
The [
EqualityProposition] that Self == T