Struct libp2p::gossipsub::protocol::GossipsubCodec
source · pub struct GossipsubCodec { /* private fields */ }
Implementations§
source§impl GossipsubCodec
impl GossipsubCodec
pub fn new(
length_codec: UviBytes<Bytes>,
validation_mode: ValidationMode
) -> GossipsubCodec
Trait Implementations§
source§impl Decoder for GossipsubCodec
impl Decoder for GossipsubCodec
§type Error = GossipsubHandlerError
type Error = GossipsubHandlerError
The type of decoding errors.
source§impl Encoder for GossipsubCodec
impl Encoder for GossipsubCodec
§type Error = GossipsubHandlerError
type Error = GossipsubHandlerError
The type of encoding errors.