pub enum Amf0ReadError {
UnknownMarker(u8),
UnsupportedType(Amf0Marker),
StringParseError(Utf8Error),
Io(Error),
WrongType(Amf0Marker, Amf0Marker),
}Expand description
Errors that can occur when decoding AMF0 data.
Variants§
UnknownMarker(u8)
An unknown marker was encountered.
UnsupportedType(Amf0Marker)
An unsupported type was encountered.
StringParseError(Utf8Error)
A string parse error occurred.
Io(Error)
An IO error occurred.
WrongType(Amf0Marker, Amf0Marker)
A wrong type was encountered. Created when using
Amf0Decoder::next_with_type and the next value is not the expected
type.
Trait Implementations§
Source§impl Debug for Amf0ReadError
impl Debug for Amf0ReadError
Source§impl Display for Amf0ReadError
impl Display for Amf0ReadError
Source§impl Error for Amf0ReadError
impl Error for Amf0ReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<Error> for Amf0ReadError
impl From<Error> for Amf0ReadError
Auto Trait Implementations§
impl Freeze for Amf0ReadError
impl !RefUnwindSafe for Amf0ReadError
impl Send for Amf0ReadError
impl Sync for Amf0ReadError
impl Unpin for Amf0ReadError
impl !UnwindSafe for Amf0ReadError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more