pub enum VotingKeyError {
TooShort,
SizeMismatch {
expected: usize,
actual: usize,
},
InvalidEpochs {
start: u64,
end: u64,
},
InconsistentEpochs,
InvalidKeyIdentifier(u64),
}Variants§
TooShort
ヘッダーの長さに足りない
SizeMismatch
期間から決まる長さと合わない
InvalidEpochs
期間が、0 から始まるか、逆になっているか、エポックの範囲を超えている
InconsistentEpochs
先頭の期間と、根の公開鍵に続く期間が違う
InvalidKeyIdentifier(u64)
使った鍵か消した鍵の番号が、期間の中にない
Trait Implementations§
Source§impl Clone for VotingKeyError
impl Clone for VotingKeyError
Source§fn clone(&self) -> VotingKeyError
fn clone(&self) -> VotingKeyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VotingKeyError
impl Debug for VotingKeyError
Source§impl Display for VotingKeyError
impl Display for VotingKeyError
impl Eq for VotingKeyError
Source§impl Error for VotingKeyError
impl Error for VotingKeyError
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 VotingKeyError
impl PartialEq for VotingKeyError
impl StructuralPartialEq for VotingKeyError
Auto Trait Implementations§
impl Freeze for VotingKeyError
impl RefUnwindSafe for VotingKeyError
impl Send for VotingKeyError
impl Sync for VotingKeyError
impl Unpin for VotingKeyError
impl UnsafeUnpin for VotingKeyError
impl UnwindSafe for VotingKeyError
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