Enum mithril_stm::RegisterError
source · pub enum RegisterError {
KeyRegistered(Box<VerificationKey>),
KeyInvalid(Box<VerificationKeyPoP>),
SerializationError,
UnregisteredInitializer,
}
Expand description
Errors which can be outputted by key registration.
Variants§
KeyRegistered(Box<VerificationKey>)
This key has already been registered by a participant
KeyInvalid(Box<VerificationKeyPoP>)
The supplied key is not valid
SerializationError
Serialization error
UnregisteredInitializer
UnregisteredInitializer error
Trait Implementations§
source§impl Clone for RegisterError
impl Clone for RegisterError
source§fn clone(&self) -> RegisterError
fn clone(&self) -> RegisterError
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 RegisterError
impl Debug for RegisterError
source§impl Display for RegisterError
impl Display for RegisterError
source§impl Error for RegisterError
impl Error for RegisterError
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 PartialEq for RegisterError
impl PartialEq for RegisterError
impl Eq for RegisterError
impl StructuralPartialEq for RegisterError
Auto Trait Implementations§
impl Freeze for RegisterError
impl RefUnwindSafe for RegisterError
impl Send for RegisterError
impl Sync for RegisterError
impl Unpin for RegisterError
impl UnwindSafe for RegisterError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)