Enum ambient_api::message::MessageSerdeError
source · pub enum MessageSerdeError {
IO(Error),
InvalidValue,
InvalidComponentDefinition {
index: u32,
},
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
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§fn from(source: Error) -> MessageSerdeError
fn from(source: Error) -> MessageSerdeError
Converts to this type from the input type.
source§impl From<TryFromIntError> for MessageSerdeError
impl From<TryFromIntError> for MessageSerdeError
source§fn from(source: TryFromIntError) -> MessageSerdeError
fn from(source: TryFromIntError) -> MessageSerdeError
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.