Enum fixed_width::SerializeError
source · pub enum SerializeError {
Message(String),
Unsupported(String),
UnexpectedEndOfFields,
}
Expand description
Errors that occur during serialization.
Variants§
Message(String)
General error message as a String
.
Unsupported(String)
The desired type is unsupported by this serializer.
UnexpectedEndOfFields
The number of Field
s given were less than the number of values to be serialized.
Trait Implementations§
source§impl Debug for SerializeError
impl Debug for SerializeError
source§impl Display for SerializeError
impl Display for SerializeError
source§impl Error for SerializeError
impl Error for SerializeError
source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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<SerializeError> for Error
impl From<SerializeError> for Error
source§fn from(e: SerializeError) -> Self
fn from(e: SerializeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializeError
impl RefUnwindSafe for SerializeError
impl Send for SerializeError
impl Sync for SerializeError
impl Unpin for SerializeError
impl UnwindSafe for SerializeError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more