pub enum ConversionError {
InvalidId(String),
UnknownVariant {
type_name: &'static str,
value: String,
},
Json(String),
Base64(String),
Gzip(String),
UnsupportedVersion(u32),
IdIndexMismatch {
expected: u64,
actual: u64,
},
}Expand description
Errors during AST ↔ JSON conversion.
Variants§
InvalidId(String)
Invalid decimal ID string.
UnknownVariant
Unknown enum variant tag.
Json(String)
JSON parse/stringify error.
Base64(String)
Share state base64 decoding error.
Gzip(String)
Share state gzip decoding error.
UnsupportedVersion(u32)
Schema version mismatch.
IdIndexMismatch
Arena slot ID doesn’t match its index.
Trait Implementations§
Source§impl Clone for ConversionError
impl Clone for ConversionError
Source§fn clone(&self) -> ConversionError
fn clone(&self) -> ConversionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConversionError
impl Debug for ConversionError
Source§impl Display for ConversionError
impl Display for ConversionError
Source§impl Error for ConversionError
impl Error for ConversionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for ConversionError
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnsafeUnpin for ConversionError
impl UnwindSafe for ConversionError
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