pub enum FloodsubDecodeError {
ReadError(Error),
ProtobufError(DecodeError),
InvalidPeerId,
}
Expand description
Reach attempt interrupt errors.
Variants§
ReadError(Error)
Error when reading the packet from the socket.
ProtobufError(DecodeError)
Error when decoding the raw buffer into a protobuf.
InvalidPeerId
Error when parsing the PeerId
in the message.
Trait Implementations§
source§impl Debug for FloodsubDecodeError
impl Debug for FloodsubDecodeError
source§impl Display for FloodsubDecodeError
impl Display for FloodsubDecodeError
source§impl Error for FloodsubDecodeError
impl Error for FloodsubDecodeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for FloodsubDecodeError
impl From<DecodeError> for FloodsubDecodeError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.