[][src]Enum rml_amf0::Amf0DeserializationError

pub enum Amf0DeserializationError {
    UnknownMarker {
        marker: u8,
    },
    UnexpectedEmptyObjectPropertyName,
    UnexpectedEof,
    BufferReadError(Error),
    StringParseError(FromUtf8Error),
}

Errors that can occur during the deserialization process

Variants

UnknownMarker

Every Amf0 value starts with a marker byte describing the type of value that was encoded. For example a marker of 0x00 is a number, 0x01 is a string, etc..

This error is encountered when we see a maker value that we do not recognize.

Fields of UnknownMarker

marker: u8
UnexpectedEmptyObjectPropertyName

Object properties consist of a name and value pair. It is expected that every property has a valid string name, and if the name is empty this error is raised.

UnexpectedEof

This occurs when we are expecting more data but hit the end of the buffer (e.g. we are reading an object property but there was no property value).

BufferReadError(Error)

An I/O Error occurred while reading the data buffer

StringParseError(FromUtf8Error)

Strings in AMF0 are UTF-8 encoded, so if the bytes read are not valid UTF-8 this error will be raised.

Trait Implementations

impl Debug for Amf0DeserializationError[src]

impl Display for Amf0DeserializationError[src]

impl Fail for Amf0DeserializationError[src]

impl From<Error> for Amf0DeserializationError[src]

impl From<FromUtf8Error> for Amf0DeserializationError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.