Enum libp2p::floodsub::protocol::FloodsubDecodeError [−][src]
pub enum FloodsubDecodeError {
ReadError(ReadOneError),
ProtobufError(DecodeError),
InvalidPeerId,
}Expand description
Reach attempt interrupt errors.
Variants
ReadError(ReadOneError)Error when reading the packet from the socket.
ProtobufError(DecodeError)Error when decoding the raw buffer into a protobuf.
Error when parsing the PeerId in the message.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FloodsubDecodeErrorimpl Send for FloodsubDecodeErrorimpl Sync for FloodsubDecodeErrorimpl Unpin for FloodsubDecodeErrorimpl !UnwindSafe for FloodsubDecodeErrorBlanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)Converts a reference to Self into a dynamic trait object of Fail.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V