#[repr(i32)]pub enum ErrorReason {
Show 34 variants
CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED = 0,
CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT = 1,
CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED = 2,
CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION = 3,
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT = 4,
CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK = 5,
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE = 6,
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK = 7,
CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED = 8,
CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT = 9,
CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT = 10,
CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED = 11,
CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT = 12,
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8 = 13,
CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY = 14,
CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER = 15,
CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA = 16,
CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE = 17,
CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG = 18,
CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM = 19,
CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING = 20,
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT = 21,
CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY = 22,
CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT = 23,
CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT = 24,
CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT = 25,
CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT = 26,
CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT = 27,
CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT = 28,
CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT = 29,
CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT = 30,
CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT = 31,
CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW = 32,
CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE = 33,
}Expand description
Schema-generated, fixed reasons for the compatibility error facade.
Variants§
CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED = 0
CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT = 1
Error text: empty input
CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED = 2
Error text: truncated item
CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION = 3
Error text: reserved additional information
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT = 4
Error text: invalid indefinite argument
CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK = 5
Error text: unexpected break
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE = 6
Error text: invalid simple value encoding
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK = 7
Error text: invalid string chunk
CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED = 8
Error text: indefinite length is not allowed
CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT = 9
Error text: non-preferred argument encoding
CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT = 10
Error text: non-preferred floating-point encoding
CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED = 11
Error text: floating-point values are not allowed
CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT = 12
Error text: non-finite floating-point value
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8 = 13
Error text: invalid UTF-8
CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY = 14
Error text: duplicate map key
CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER = 15
Error text: map key ordering violation
CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA = 16
Error text: trailing data
CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE = 17
Error text: unexpected item type
CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG = 18
Error text: unexpected tag
CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM = 19
Error text: empty embedded CBOR
CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING = 20
Error text: non-contiguous string contents
CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT = 21
Error text: invalid resource limit
CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY = 22
Error text: unsupported profile combination
CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT = 23
Error text: input limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT = 24
Error text: output limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT = 25
Error text: nesting limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT = 26
Error text: node limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT = 27
Error text: container entry limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT = 28
Error text: byte-string content limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT = 29
Error text: text content limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT = 30
Error text: validation work limit exceeded
CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT = 31
Error text: container declaration exceeds remaining input
CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW = 32
Error text: length arithmetic overflow
CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE = 33
Error text: bounded allocation failed
Implementations§
Source§impl CodecGeneralCborErrorReason
impl CodecGeneralCborErrorReason
Sourcepub const Unspecified: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED
pub const Unspecified: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED; Debug prints the variant name.
Sourcepub const EmptyInput: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT
pub const EmptyInput: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT; Debug prints the variant name.
Sourcepub const Truncated: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED
pub const Truncated: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED; Debug prints the variant name.
Sourcepub const ReservedAdditionalInformation: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION
pub const ReservedAdditionalInformation: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION; Debug prints the variant name.
Sourcepub const InvalidIndefiniteArgument: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT
pub const InvalidIndefiniteArgument: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT; Debug prints the variant name.
Sourcepub const UnexpectedBreak: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK
pub const UnexpectedBreak: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK; Debug prints the variant name.
Sourcepub const InvalidSimpleValue: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE
pub const InvalidSimpleValue: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE; Debug prints the variant name.
Sourcepub const InvalidChunk: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK
pub const InvalidChunk: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK; Debug prints the variant name.
Sourcepub const IndefiniteNotAllowed: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED
pub const IndefiniteNotAllowed: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED; Debug prints the variant name.
Sourcepub const NonPreferredArgument: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT
pub const NonPreferredArgument: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT; Debug prints the variant name.
Sourcepub const NonPreferredFloat: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT
pub const NonPreferredFloat: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT; Debug prints the variant name.
Sourcepub const FloatNotAllowed: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED
pub const FloatNotAllowed: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED; Debug prints the variant name.
Sourcepub const NonFiniteFloat: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT
pub const NonFiniteFloat: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT; Debug prints the variant name.
Sourcepub const InvalidUtf8: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8
pub const InvalidUtf8: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8; Debug prints the variant name.
Sourcepub const DuplicateMapKey: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY
pub const DuplicateMapKey: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY; Debug prints the variant name.
Sourcepub const MapKeyOrder: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER
pub const MapKeyOrder: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER; Debug prints the variant name.
Sourcepub const TrailingData: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA
pub const TrailingData: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA; Debug prints the variant name.
Sourcepub const WrongType: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE
pub const WrongType: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE; Debug prints the variant name.
Sourcepub const WrongTag: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG
pub const WrongTag: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG; Debug prints the variant name.
Sourcepub const EmptyEmbeddedItem: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM
pub const EmptyEmbeddedItem: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM; Debug prints the variant name.
Sourcepub const NonContiguousString: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING
pub const NonContiguousString: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING; Debug prints the variant name.
Sourcepub const InvalidLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT
pub const InvalidLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT; Debug prints the variant name.
Sourcepub const UnsupportedPolicy: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY
pub const UnsupportedPolicy: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY; Debug prints the variant name.
Sourcepub const InputLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT
pub const InputLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT; Debug prints the variant name.
Sourcepub const OutputLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT
pub const OutputLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT; Debug prints the variant name.
Sourcepub const DepthLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT
pub const DepthLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT; Debug prints the variant name.
Sourcepub const NodeLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT
pub const NodeLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT; Debug prints the variant name.
Sourcepub const EntryLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT
pub const EntryLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT; Debug prints the variant name.
Sourcepub const ByteStringLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT
pub const ByteStringLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT; Debug prints the variant name.
Sourcepub const TextLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT
pub const TextLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT; Debug prints the variant name.
Sourcepub const WorkLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT
pub const WorkLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT; Debug prints the variant name.
Sourcepub const ContainerExceedsInput: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT
pub const ContainerExceedsInput: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT; Debug prints the variant name.
Sourcepub const ArithmeticOverflow: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW
pub const ArithmeticOverflow: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW; Debug prints the variant name.
Sourcepub const AllocationFailure: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE
pub const AllocationFailure: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE
Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for CodecGeneralCborErrorReason
impl Clone for CodecGeneralCborErrorReason
Source§fn clone(&self) -> CodecGeneralCborErrorReason
fn clone(&self) -> CodecGeneralCborErrorReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CodecGeneralCborErrorReason
Source§impl Debug for CodecGeneralCborErrorReason
impl Debug for CodecGeneralCborErrorReason
Source§impl Default for CodecGeneralCborErrorReason
impl Default for CodecGeneralCborErrorReason
Source§fn default() -> CodecGeneralCborErrorReason
fn default() -> CodecGeneralCborErrorReason
Source§impl<'de> Deserialize<'de> for CodecGeneralCborErrorReason
impl<'de> Deserialize<'de> for CodecGeneralCborErrorReason
Source§fn deserialize<__D>(
d: __D,
) -> Result<CodecGeneralCborErrorReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
d: __D,
) -> Result<CodecGeneralCborErrorReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Enumeration for CodecGeneralCborErrorReason
impl Enumeration for CodecGeneralCborErrorReason
Source§fn from_i32(value: i32) -> Option<CodecGeneralCborErrorReason>
fn from_i32(value: i32) -> Option<CodecGeneralCborErrorReason>
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.Source§fn from_proto_name(name: &str) -> Option<CodecGeneralCborErrorReason>
fn from_proto_name(name: &str) -> Option<CodecGeneralCborErrorReason>
Source§fn values() -> &'static [CodecGeneralCborErrorReason]
fn values() -> &'static [CodecGeneralCborErrorReason]
Source§const IS_NULL_VALUE: bool = false
const IS_NULL_VALUE: bool = false
google.protobuf.NullValue for JSON collections. Read moreimpl Eq for CodecGeneralCborErrorReason
Source§impl Error for CodecGeneralCborErrorReason
impl Error for CodecGeneralCborErrorReason
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl Hash for CodecGeneralCborErrorReason
impl Hash for CodecGeneralCborErrorReason
Source§impl ProtoElemJson for CodecGeneralCborErrorReason
impl ProtoElemJson for CodecGeneralCborErrorReason
Source§fn serialize_proto_json<__S>(
v: &CodecGeneralCborErrorReason,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize_proto_json<__S>(
v: &CodecGeneralCborErrorReason,
s: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecGeneralCborErrorReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize_proto_json<'de, __D>(
d: __D,
) -> Result<CodecGeneralCborErrorReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§fn deserialize_proto_json_null<E>() -> Result<Self, E>where
E: Error,
fn deserialize_proto_json_null<E>() -> Result<Self, E>where
E: Error,
null when it is a valid representation of this
protobuf type inside a container. Most protobuf element types reject
null; google.protobuf.Value overrides this for its null variant.