pub enum PrimitiveError {
InvalidFormat,
ValidationFailed(String),
CodecError(String),
CryptoError(String),
InvalidBlock(String),
SizeLimit(String),
InvalidTransaction(String),
InvalidHeader(String),
}Expand description
Error types for primitive operations
Variants§
InvalidFormat
Invalid data format
ValidationFailed(String)
Validation failed
CodecError(String)
Encoding/decoding error
CryptoError(String)
Cryptographic operation failed
InvalidBlock(String)
Invalid block structure or content
SizeLimit(String)
Size limit exceeded
InvalidTransaction(String)
Invalid transaction
InvalidHeader(String)
Invalid header
Trait Implementations§
Source§impl Clone for PrimitiveError
impl Clone for PrimitiveError
Source§fn clone(&self) -> PrimitiveError
fn clone(&self) -> PrimitiveError
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 PrimitiveError
impl Debug for PrimitiveError
Source§impl Display for PrimitiveError
impl Display for PrimitiveError
impl Eq for PrimitiveError
Source§impl Error for PrimitiveError
impl Error for PrimitiveError
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 PrimitiveError
impl PartialEq for PrimitiveError
Source§fn eq(&self, other: &PrimitiveError) -> bool
fn eq(&self, other: &PrimitiveError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PrimitiveError
Auto Trait Implementations§
impl Freeze for PrimitiveError
impl RefUnwindSafe for PrimitiveError
impl Send for PrimitiveError
impl Sync for PrimitiveError
impl Unpin for PrimitiveError
impl UnsafeUnpin for PrimitiveError
impl UnwindSafe for PrimitiveError
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