#[non_exhaustive]pub enum ProtocolErrorCategory {
Feature,
Fork,
State,
}Expand description
Stable high-level protocol error categories.
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.
Feature
Feature support or configuration failure.
Fork
Fork selection or activation failure.
State
Validation state failure.
Trait Implementations§
Source§impl Clone for ProtocolErrorCategory
impl Clone for ProtocolErrorCategory
Source§fn clone(&self) -> ProtocolErrorCategory
fn clone(&self) -> ProtocolErrorCategory
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 moreimpl Copy for ProtocolErrorCategory
Source§impl Debug for ProtocolErrorCategory
impl Debug for ProtocolErrorCategory
impl Eq for ProtocolErrorCategory
Source§impl PartialEq for ProtocolErrorCategory
impl PartialEq for ProtocolErrorCategory
Source§fn eq(&self, other: &ProtocolErrorCategory) -> bool
fn eq(&self, other: &ProtocolErrorCategory) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProtocolErrorCategory
Auto Trait Implementations§
impl Freeze for ProtocolErrorCategory
impl RefUnwindSafe for ProtocolErrorCategory
impl Send for ProtocolErrorCategory
impl Sync for ProtocolErrorCategory
impl Unpin for ProtocolErrorCategory
impl UnsafeUnpin for ProtocolErrorCategory
impl UnwindSafe for ProtocolErrorCategory
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