pub enum ErrorKind {
Io(Error),
TypeNotSupported(&'static str),
InvalidBoolEncoding(u8),
InvalidStringEncoding,
NotEnoughBytes,
Custom(String),
}
Expand description
Errors that may happen when parsing a kafka payload (reader or writer)
Variants§
Io(Error)
Wraps an I/O Error. Will only be seen if the write cursors return an I/O error
TypeNotSupported(&'static str)
Trying to serialize to or from a type that is not yet supported
InvalidBoolEncoding(u8)
A boolean was expected, but a value different than 0 or 1 was found
InvalidStringEncoding
A UTF-8 string was expected, but could not decode it.
NotEnoughBytes
The buffer ran out of bytes but we still had more data to deserialize
Custom(String)
Custom errors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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