pub enum AmfError {
BufferTooSmall {
want: usize,
got: usize,
},
StringTooLong {
max: usize,
got: usize,
},
InvalidUtf8(Utf8Error),
TypeMarkerValueMismatch {
want: u8,
got: u8,
},
Custom(String),
Io(Error),
}Variants§
BufferTooSmall
StringTooLong
InvalidUtf8(Utf8Error)
TypeMarkerValueMismatch
Custom(String)
Io(Error)
Trait Implementations§
Source§impl Error for AmfError
impl Error for AmfError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for AmfError
impl !UnwindSafe for AmfError
impl Freeze for AmfError
impl Send for AmfError
impl Sync for AmfError
impl Unpin for AmfError
impl UnsafeUnpin for AmfError
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