#[repr(u8)]pub enum DCPError {
Show 16 variants
InsufficientData = 1,
InvalidMagic = 2,
UnknownMessageType = 3,
ToolNotFound = 4,
ValidationFailed = 5,
HashMismatch = 6,
SignatureInvalid = 7,
NonceReused = 8,
TimestampExpired = 9,
ChecksumMismatch = 10,
Backpressure = 11,
OutOfBounds = 12,
InternalError = 13,
ResourceExhausted = 14,
SessionNotFound = 15,
CapabilityDenied = 16,
}Expand description
DCP error types
Variants§
InsufficientData = 1
Insufficient data for parsing
InvalidMagic = 2
Invalid magic number
UnknownMessageType = 3
Unknown message type
ToolNotFound = 4
Tool not found
ValidationFailed = 5
Schema validation failed
HashMismatch = 6
Hash mismatch in delta sync
SignatureInvalid = 7
Signature verification failed
NonceReused = 8
Nonce reused (replay attack)
TimestampExpired = 9
Timestamp expired
ChecksumMismatch = 10
Checksum mismatch
Backpressure = 11
Backpressure - consumer too slow
OutOfBounds = 12
Memory bounds violation
InternalError = 13
Internal error
ResourceExhausted = 14
Resource exhausted
SessionNotFound = 15
Session not found
CapabilityDenied = 16
Capability denied
Trait Implementations§
impl Copy for DCPError
impl Eq for DCPError
Source§impl Error for DCPError
impl Error for DCPError
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 From<DCPError> for AdapterError
impl From<DCPError> for AdapterError
Source§impl From<DCPError> for CompleteAdapterError
impl From<DCPError> for CompleteAdapterError
impl StructuralPartialEq for DCPError
Auto Trait Implementations§
impl Freeze for DCPError
impl RefUnwindSafe for DCPError
impl Send for DCPError
impl Sync for DCPError
impl Unpin for DCPError
impl UnsafeUnpin for DCPError
impl UnwindSafe for DCPError
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