pub struct GossipsubCodec { /* private fields */ }
Implementations
sourceimpl GossipsubCodec
impl GossipsubCodec
pub fn new(
length_codec: UviBytes<Bytes>,
validation_mode: ValidationMode
) -> GossipsubCodec
Trait Implementations
sourceimpl Decoder for GossipsubCodec
impl Decoder for GossipsubCodec
type Item = HandlerEvent
type Item = HandlerEvent
The type of items returned by decode
type Error = GossipsubHandlerError
type Error = GossipsubHandlerError
The type of decoding errors.
sourceimpl Encoder for GossipsubCodec
impl Encoder for GossipsubCodec
type Item = Rpc
type Item = Rpc
The type of items consumed by encode
type Error = GossipsubHandlerError
type Error = GossipsubHandlerError
The type of encoding errors.
Auto Trait Implementations
impl RefUnwindSafe for GossipsubCodec
impl Send for GossipsubCodec
impl Sync for GossipsubCodec
impl Unpin for GossipsubCodec
impl UnwindSafe for GossipsubCodec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more