[−][src]Enum serde_xdr::SerializationError
Error during serialization.
Variants
Custom error message.
Fields of Custom
message: String
The message of the custom error.
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.
IO error while serializing a value.
Fields of IoError
Map types are not supported by XDR.
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.
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.
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.
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.
Sequences with unknown lengths are not supported.
Only ASCII strings can be serialized.
Fields of StringIsNotAscii
string: String
The string that can't be represented as an ASCII string.
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 Debug for SerializationError
[src]
impl Display for SerializationError
[src]
impl Fail for SerializationError
[src]
pub fn name(&self) -> Option<&str>
[src]
pub fn cause(&self) -> Option<&dyn Fail>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
pub fn compat(self) -> Compat<Self>
[src]
impl From<CompatSerializationError> for SerializationError
[src]
pub fn from(wrapped_error: CompatSerializationError) -> Self
[src]
impl From<SerializationError> for CompatSerializationError
[src]
pub fn from(error: SerializationError) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SerializationError
impl Send for SerializationError
impl Sync for SerializationError
impl Unpin for SerializationError
impl !UnwindSafe for SerializationError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut 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.
pub 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>,