[−][src]Enum serde_scale::Error
Serialization errors
Variants
SCALE does not specify how to serialize floating point values
SCALE limits enums to 255 variants
SCALE requires knowing the length of collections
SCALE requires knowing the type of the data being deserialized
A boolean value (0 or 1) was expected but another byte was found
Fields of ExpectedBoolean
found: u8
Invalid character found. Characters must be UTF-32 code points.
Fields of InvalidCharacter
found: u32
This implementation limits collections to 2^64 elements
Fields of CollectionTooLargeToSerialize
len: usize
This implementation limits collections to 2^64 elements
InvalidUnicode(Utf8Error)
Invalid Unicode was found in a string
An option was expected but the discriminant is invalid
Fields of InvalidOption
found_discriminant: u8
I/O error from the underlying reader or writer
Other(OtherError)
Other error the serializer or deserializer might encounter
Trait Implementations
impl<E: Debug> Debug for Error<E>
[src]
impl<E: Display> Display for Error<E>
[src]
impl<E: Debug + Display> Error for Error<E>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<E: Debug + Display> Error for Error<E>
[src]
impl<E: Debug + Display> Error for Error<E>
[src]
fn custom<T: Display>(msg: T) -> Self
[src]
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
[src]
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
[src]
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
[src]
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
[src]
fn missing_field(field: &'static str) -> Self
[src]
fn duplicate_field(field: &'static str) -> Self
[src]
impl<E> From<E> for Error<E>
[src]
Auto Trait Implementations
impl<E> RefUnwindSafe for Error<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for Error<E> where
E: Send,
E: Send,
impl<E> Sync for Error<E> where
E: Sync,
E: Sync,
impl<E> Unpin for Error<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for Error<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,