Enum amf::error::DecodeError [] [src]

pub enum DecodeError {
    Io(Error),
    String(FromUtf8Error),
    Unknown {
        marker: u8,
    },
    Unsupported {
        marker: u8,
    },
    UnexpectedObjectEnd,
    CircularReference {
        index: usize,
    },
    OutOfRangeReference {
        index: usize,
    },
    NonZeroTimeZone {
        offset: i16,
    },
    InvalidDate {
        millis: f64,
    },
    ExternalizableType {
        name: String,
    },
}

AMF Decoding Error.

Variants

I/O error.

Invalid UTF-8 error.

Unknown marker.

Fields of Unknown

Unknown marker.

Unsupported type.

Fields of Unsupported

The marker of the unsupported type.

Unexpected object end marker (only AMF0).

Circular reference.

Note that circular references are allowed in the specification, but limited by the current implementation.

Fields of CircularReference

Circular reference index.

Out-of-range reference index.

Fields of OutOfRangeReference

Out-of-range index.

Unsupported non-zero time zone (only AMF0).

Fields of NonZeroTimeZone

Time zone offset (non zero).

Invalid unix-time.

Fields of InvalidDate

Invalid unix-time (e.g., infiniy, minus).

Unsupported externalizable type.

Fields of ExternalizableType

The name of the externalizable type.

Trait Implementations

impl Debug for DecodeError
[src]

Formats the value using the given formatter.

impl Error for DecodeError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for DecodeError
[src]

Formats the value using the given formatter. Read more

impl PartialEq for DecodeError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<Error> for DecodeError
[src]

Performs the conversion.

impl From<FromUtf8Error> for DecodeError
[src]

Performs the conversion.