Enum strict_encoding::DecodeError
source · pub enum DecodeError {
Io(IoError),
Confinement(Error),
Utf8(FromUtf8Error),
Ascii(AsAsciiStrError),
RepeatedSetValue,
RepeatedMapValue,
EnumTagNotKnown(String, u8),
UnionTagNotKnown(String, u8),
ValueOutOfRange(String, Range<u128>, u128),
BrokenSetOrder,
BrokenMapOrder,
DataIntegrityError(String),
}
Variants§
Io(IoError)
Confinement(Error)
confinement requirements are not satisfied. Specifically, {0}
Utf8(FromUtf8Error)
string data are not in valid UTF-8 encoding.\nDetails: {0}
Ascii(AsAsciiStrError)
string data are not in valid UTF-8 encoding.\nDetails: {0}
RepeatedSetValue
value occurs multiple times in a set
RepeatedMapValue
key occurs multiple times in a map
EnumTagNotKnown(String, u8)
unsupported value {1}
for enum {0}
encountered during decode
operation
UnionTagNotKnown(String, u8)
unsupported value {1}
for union {0}
encountered during decode
operation
ValueOutOfRange(String, Range<u128>, u128)
decoding resulted in value {2}
for type {0}
that exceeds the
supported range {1:#?}
BrokenSetOrder
encoded values are not deterministically ordered within a set
BrokenMapOrder
encoded map has wrong order of keys
DataIntegrityError(String)
data integrity problem during strict decoding operation.\nDetails: {0}
Trait Implementations§
source§impl Clone for DecodeError
impl Clone for DecodeError
source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a copy of the value. Read more
1.0.0 · 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 DecodeError
impl Debug for DecodeError
source§impl Display for DecodeError
impl Display for DecodeError
source§impl Error for DecodeError
impl Error for DecodeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AsAsciiStrError> for DecodeError
impl From<AsAsciiStrError> for DecodeError
source§impl From<DecodeError> for DeserializeError
impl From<DecodeError> for DeserializeError
source§fn from(v: DecodeError) -> Self
fn from(v: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for String
impl From<DecodeError> for String
source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for DecodeError
impl From<Error> for DecodeError
source§impl From<Error> for DecodeError
impl From<Error> for DecodeError
source§impl From<FromUtf8Error> for DecodeError
impl From<FromUtf8Error> for DecodeError
source§fn from(v: FromUtf8Error) -> Self
fn from(v: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl PartialEq<DecodeError> for DecodeError
impl PartialEq<DecodeError> for DecodeError
source§fn eq(&self, other: &DecodeError) -> bool
fn eq(&self, other: &DecodeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DecodeError
impl StructuralEq for DecodeError
impl StructuralPartialEq for DecodeError
Auto Trait Implementations§
impl !RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl !UnwindSafe for DecodeError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.