#[non_exhaustive]pub enum DeserError {
Malformed {
reason: String,
},
SchemaUnavailable {
reason: String,
},
NotReady {
reason: String,
},
}Expand description
A payload could not be deserialized.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Malformed
The payload bytes do not match the expected format.
A schema required to decode the payload is not available.
NotReady
The payload cannot be decoded yet: a required resource (typically
a schema fetched from a registry) is still being obtained, and the
deserializer has already triggered the asynchronous work that will
make it available. The chain reports the batch Blocked at this
payload and the driver’s retry loop re-pushes it — the record is
neither dropped nor counted as an error, and the stage’s
ErrorPolicy does not apply.
Contract: a deserializer must return this before emitting any
record for the payload; records emitted ahead of a NotReady
would be duplicated when the payload is replayed.
Trait Implementations§
Source§impl Debug for DeserError
impl Debug for DeserError
Source§impl Display for DeserError
impl Display for DeserError
Source§impl Error for DeserError
impl Error for DeserError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()