Struct libp2p_gossipsub::protocol::GossipsubCodec
source · [−]pub struct GossipsubCodec { /* private fields */ }
Implementations
Trait Implementations
type Item = HandlerEvent
type Item = HandlerEvent
The type of items returned by decode
type Error = GossipsubHandlerError
type Error = GossipsubHandlerError
The type of decoding errors.
Decode an item from the src BytesMut
into an item