Enum spacetimedb_lib::buffer::DecodeError
source · pub enum DecodeError {
BufferLength,
InvalidTag,
InvalidUtf8,
}Expand description
Minimal utility for reading & writing the types we need to internal storage, without relying on third party libraries like bytes::Bytes, etc. Meant to be kept slim and trim for use across both native and wasm.
Variants§
Trait Implementations§
source§impl Clone for DecodeError
impl Clone for DecodeError
source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
Returns a copy 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 DecodeError
impl Debug for DecodeError
source§impl Display for DecodeError
impl Display for DecodeError
source§impl Error for DecodeError
impl Error for DecodeError
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 Error for DecodeError
impl Error for DecodeError
fn custom(msg: impl Display) -> DecodeError
fn unknown_variant_tag<'de, T>(_tag: u8, _expected: &T) -> DecodeErrorwhere T: SumVisitor<'de>,
fn invalid_product_length<'de, T>(len: usize, expected: &T) -> Selfwhere T: ProductVisitor<'de>,
fn missing_field<'de, T>(field: usize, field_name: Option<&str>, prod: &T) -> Selfwhere T: ProductVisitor<'de>,
fn duplicate_field<'de, T>( field: usize, field_name: Option<&str>, prod: &T ) -> Selfwhere T: ProductVisitor<'de>,
fn unknown_field_name<'de, T>(field_name: &str, expected: &T) -> Selfwhere T: FieldNameVisitor<'de>,
fn unknown_variant_name<T>(name: &str, expected: &T) -> Selfwhere T: VariantVisitor,
source§impl From<DecodeError> for LibError
impl From<DecodeError> for LibError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Utf8Error> for DecodeError
impl From<Utf8Error> for DecodeError
source§fn from(_: Utf8Error) -> DecodeError
fn from(_: Utf8Error) -> DecodeError
Converts to this type from the input type.