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
Io(Error)
I/O error.
String(FromUtf8Error)
Invalid UTF-8 error.
Unknown
Unknown marker.
Fields of Unknown
marker: u8 | Unknown marker. |
Unsupported
Unsupported type.
Fields of Unsupported
marker: u8 | The marker of the unsupported type. |
UnexpectedObjectEnd
Unexpected object end marker (only AMF0).
CircularReference
Circular reference.
Note that circular references are allowed in the specification, but limited by the current implementation.
Fields of CircularReference
index: usize | Circular reference index. |
OutOfRangeReference
Out-of-range reference index.
Fields of OutOfRangeReference
index: usize | Out-of-range index. |
NonZeroTimeZone
Unsupported non-zero time zone (only AMF0).
Fields of NonZeroTimeZone
offset: i16 | Time zone offset (non zero). |
InvalidDate
Invalid unix-time.
Fields of InvalidDate
millis: f64 | Invalid unix-time (e.g., infiniy, minus). |
ExternalizableType
Unsupported externalizable type.
Fields of ExternalizableType
name: String | The name of the externalizable type. |
Trait Implementations
impl Debug for DecodeError
[src]
impl Error for DecodeError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for DecodeError
[src]
impl PartialEq for DecodeError
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl From<Error> for DecodeError
[src]
impl From<FromUtf8Error> for DecodeError
[src]
fn from(f: FromUtf8Error) -> Self
Performs the conversion.