Trait codecs::decoding::StreamDecodingError
source · pub trait StreamDecodingError {
// Required method
fn can_continue(&self) -> bool;
}
Expand description
An error that occurs while decoding a stream.
Required Methods§
sourcefn can_continue(&self) -> bool
fn can_continue(&self) -> bool
Whether it is reasonable to assume that continuing to read from the stream in which this error occurred will not result in an indefinite hang up.
This can occur e.g. when reading the header of a length-delimited codec failed and it can no longer be determined where the next header starts.