pub enum GarblerError {
CommunicationError(String),
AsymmetricHalfGateModuliMax8(u16),
TruthTableRequired,
DeltaRequired,
EncodingError,
FancyError(FancyError),
}Expand description
Errors from the garbler.
Variants§
CommunicationError(String)
An error occurred while processing a message.
AsymmetricHalfGateModuliMax8(u16)
Asymmetric moduli error.
TruthTableRequired
A truth table was missing.
DeltaRequired
Delta required for wire reuse.
EncodingError
Encoding error.
FancyError(FancyError)
A fancy error has occurred.
Trait Implementations§
Source§impl Debug for GarblerError
impl Debug for GarblerError
Source§impl Display for GarblerError
impl Display for GarblerError
Source§impl From<Error> for GarblerError
impl From<Error> for GarblerError
Source§impl From<FancyError> for GarblerError
impl From<FancyError> for GarblerError
Source§fn from(e: FancyError) -> Self
fn from(e: FancyError) -> Self
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 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 GarblerError
impl RefUnwindSafe for GarblerError
impl Send for GarblerError
impl Sync for GarblerError
impl Unpin for GarblerError
impl UnwindSafe for GarblerError
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