Struct libp2p_gossipsub::protocol::GossipsubCodec
source · [−]pub struct GossipsubCodec { /* private fields */ }
Implementations
sourceimpl GossipsubCodec
impl GossipsubCodec
pub fn new(length_codec: UviBytes, validation_mode: ValidationMode) -> Self
Trait Implementations
sourceimpl Decoder for GossipsubCodec
impl Decoder for GossipsubCodec
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