Enum ambient_api::prelude::message::MessageSerdeError
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§
§impl Debug for MessageSerdeError
impl Debug for MessageSerdeError
§impl Display for MessageSerdeError
impl Display for MessageSerdeError
§impl Error for MessageSerdeError
impl Error for MessageSerdeError
§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()
§impl From<Error> for MessageSerdeError
impl From<Error> for MessageSerdeError
§fn from(source: Error) -> MessageSerdeError
fn from(source: Error) -> MessageSerdeError
Converts to this type from the input type.
§impl From<TryFromIntError> for MessageSerdeError
impl From<TryFromIntError> for MessageSerdeError
§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
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where T: AsAny,
Forward to the method defined on the type
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: AsAny,
Forward to the method defined on the type
Any.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.