pub enum VrfError {
IncorrectSliceSize(TryFromSliceError),
IncorrectPiLength {
expected: usize,
actual: usize,
},
TryAndIncrementNoCandidatesFound,
UnsupportedCiphersuite(Ciphersuite),
ProofVerificationFailure,
P256Error(Error),
P256Hash2CurveError(ExpandMsgXmdError),
InvalidEcPoint,
}Variants§
IncorrectSliceSize(TryFromSliceError)
IncorrectPiLength
TryAndIncrementNoCandidatesFound
UnsupportedCiphersuite(Ciphersuite)
ProofVerificationFailure
P256Error(Error)
Available on crate feature
p256 only.P256Hash2CurveError(ExpandMsgXmdError)
Available on crate feature
p256 only.InvalidEcPoint
Available on crate feature
ec only.Trait Implementations§
Source§impl Error for VrfError
impl Error for VrfError
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<ExpandMsgXmdError> for VrfError
impl From<ExpandMsgXmdError> for VrfError
Source§fn from(source: ExpandMsgXmdError) -> Self
fn from(source: ExpandMsgXmdError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for VrfError
impl From<TryFromSliceError> for VrfError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VrfError
impl RefUnwindSafe for VrfError
impl Send for VrfError
impl Sync for VrfError
impl Unpin for VrfError
impl UnsafeUnpin for VrfError
impl UnwindSafe for VrfError
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