[−][src]Enum rml_amf0::Amf0DeserializationError
Errors that can occur during the deserialization process
Variants
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
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.
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]
pub fn name(&self) -> Option<&str>
[src]
pub fn cause(&self) -> Option<&dyn Fail>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
pub fn compat(self) -> Compat<Self>
[src]
impl From<Error> for Amf0DeserializationError
[src]
impl From<FromUtf8Error> for Amf0DeserializationError
[src]
pub fn from(error: FromUtf8Error) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Amf0DeserializationError
[src]
impl Send for Amf0DeserializationError
[src]
impl Sync for Amf0DeserializationError
[src]
impl Unpin for Amf0DeserializationError
[src]
impl !UnwindSafe for Amf0DeserializationError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsFail for T where
T: Fail,
[src]
T: Fail,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,