#[non_exhaustive]pub enum SerializationError {
PolynomialContextNotFound {
context_id: String,
},
WrongPolynomialCount {
structure_type: String,
expected: usize,
actual: usize,
},
InvalidFormat {
reason: String,
},
VersionMismatch {
serialized_version: String,
current_version: String,
},
CorruptedData {
details: String,
},
MissingField {
field_name: String,
},
IOError {
error: String,
},
ProtobufError {
message: String,
},
}Expand description
Separate enum for errors arising from serialization.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PolynomialContextNotFound
Indicates polynomial context was not found during deserialization
WrongPolynomialCount
Indicates wrong number of polynomials in structure
InvalidFormat
Indicates invalid serialized data format
VersionMismatch
Indicates version mismatch in serialized data
CorruptedData
Indicates corrupted serialized data
MissingField
Indicates missing required field in serialization
IOError
Indicates IO error during serialization/deserialization
ProtobufError
Indicates protobuf encoding/decoding error
Trait Implementations§
Source§impl Debug for SerializationError
impl Debug for SerializationError
Source§impl Display for SerializationError
impl Display for SerializationError
Source§impl Error for SerializationError
impl Error for SerializationError
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 SerializationError
impl From<Error> for SerializationError
Source§impl PartialEq for SerializationError
impl PartialEq for SerializationError
impl Eq for SerializationError
impl StructuralPartialEq for SerializationError
Auto Trait Implementations§
impl Freeze for SerializationError
impl RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl UnwindSafe for SerializationError
Blanket Implementations§
Source§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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