pub enum MessageSerdeError {
IO(Error),
InvalidValue,
InvalidComponentDefinition {
index: ComponentIndex,
},
ArrayTooLong(TryFromIntError),
UnsupportedType,
}
Expand description
Error that can occur during message ser/de.
Variants§
IO(Error)
Arbitrary I/O error during ser/de.
InvalidValue
An invalid value was encountered during ser/de.
InvalidComponentDefinition
Fields
§
index: ComponentIndex
An invalid component definition was encountered during ser/de.
ArrayTooLong(TryFromIntError)
The length of an array exceeded 2^32-1 bytes.
UnsupportedType
This type is not supported for message serde on this side.
Trait Implementations§
source§impl Debug for MessageSerdeError
impl Debug for MessageSerdeError
source§impl Display for MessageSerdeError
impl Display for MessageSerdeError
source§impl Error for MessageSerdeError
impl Error for MessageSerdeError
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<Error> for MessageSerdeError
impl From<Error> for MessageSerdeError
source§impl From<TryFromIntError> for MessageSerdeError
impl From<TryFromIntError> for MessageSerdeError
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MessageSerdeError
impl Send for MessageSerdeError
impl Sync for MessageSerdeError
impl Unpin for MessageSerdeError
impl !UnwindSafe for MessageSerdeError
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