[−][src]Enum serde_xdr::SerializationError
Error during serialization.
Variants
Custom
Custom error message.
Fields of Custom
message: String
The message of the custom error.
Failure
Failure to serialize a value.
Fields of Failure
what: String
A description of what was being serialized.
cause: Box<CompatSerializationError>
The error that ocurred during serialization.
IoError
IO error while serializing a value.
Fields of IoError
MapIsNotSupported
Map types are not supported by XDR.
OpaqueDataIsTooLong
Attempt to serialize opaque data with too many bytes.
Fields of OpaqueDataIsTooLong
length: usize
The length of the data, which is larger than what can be represented.
SequenceOrTupleFatalError
Fatal error while serializing a sequence or a tuple.
This is probably caused by ignoring a previous error.
Fields of SequenceOrTupleFatalError
type_name: String
The name of the type being serialized.
StructFatalError
Fatal error while serializing an object.
This is probably caused by ignoring a previous error.
Fields of StructFatalError
name: String
The name of the type being serialized.
SequenceTooLong
Attempt to serialize a sequence that's too long.
Fields of SequenceTooLong
length: usize
The length of the sequence, which is larger than what can be represented.
SequenceWithUnknownLength
Sequences with unknown lengths are not supported.
StringIsNotAscii
Only ASCII strings can be serialized.
Fields of StringIsNotAscii
string: String
The string that can't be represented as an ASCII string.
StringIsTooLong
Attempt to serialize a string that's too long.
Fields of StringIsTooLong
string: String
The length of the string, which is larger than what can be represented.
Trait Implementations
impl From<SerializationError> for CompatSerializationError
[src]
fn from(error: SerializationError) -> Self
[src]
impl From<CompatSerializationError> for SerializationError
[src]
fn from(wrapped_error: CompatSerializationError) -> Self
[src]
impl Display for SerializationError
[src]
impl Debug for SerializationError
[src]
impl Fail for SerializationError
[src]
fn name(&self) -> Option<&str>
[src]
fn cause(&self) -> Option<&dyn Fail>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
Auto Trait Implementations
impl Send for SerializationError
impl Sync for SerializationError
Blanket Implementations
impl<T, U> Into 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> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
[src]
E: 'static + Error + Send + Sync,
fn name(&self) -> Option<&str>
[src]
Returns the "name" of the error. Read more
fn cause(&self) -> Option<&(dyn Fail + 'static)>
[src]
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more