#[non_exhaustive]pub enum ProtocolV3Error {
Show 16 variants
InvalidJson,
InvalidRequestId,
InvalidClientIdentity,
IncompatibleApiVersion,
InvalidPayloadLimit,
PayloadTooLarge,
MissingCapability,
UnexpectedCapability,
InvalidCapability,
MissingFeatureSchemaHash,
InvalidFeatureSchemaHash,
InvalidDecisionId,
NonFiniteReward,
InvalidCapabilities,
InvalidErrorMessage,
InvalidRetryability,
}Expand description
Shape validation failures before runtime execution.
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.
InvalidJson
InvalidRequestId
InvalidClientIdentity
IncompatibleApiVersion
InvalidPayloadLimit
PayloadTooLarge
MissingCapability
UnexpectedCapability
InvalidCapability
MissingFeatureSchemaHash
InvalidFeatureSchemaHash
InvalidDecisionId
NonFiniteReward
InvalidCapabilities
InvalidErrorMessage
InvalidRetryability
Trait Implementations§
Source§impl Clone for ProtocolV3Error
impl Clone for ProtocolV3Error
Source§fn clone(&self) -> ProtocolV3Error
fn clone(&self) -> ProtocolV3Error
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 ProtocolV3Error
Source§impl Debug for ProtocolV3Error
impl Debug for ProtocolV3Error
Source§impl Display for ProtocolV3Error
impl Display for ProtocolV3Error
impl Eq for ProtocolV3Error
Source§impl Error for ProtocolV3Error
impl Error for ProtocolV3Error
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 ProtocolV3Error
impl PartialEq for ProtocolV3Error
impl StructuralPartialEq for ProtocolV3Error
Auto Trait Implementations§
impl Freeze for ProtocolV3Error
impl RefUnwindSafe for ProtocolV3Error
impl Send for ProtocolV3Error
impl Sync for ProtocolV3Error
impl Unpin for ProtocolV3Error
impl UnsafeUnpin for ProtocolV3Error
impl UnwindSafe for ProtocolV3Error
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