Struct libp2p_gossipsub::IdentityTransform
source · [−]pub struct IdentityTransform;
Expand description
The default transform, the raw data is propagated as is to the application layer gossipsub.
Trait Implementations
fn inbound_transform(
&self,
raw_message: RawGossipsubMessage
) -> Result<GossipsubMessage, Error>
fn inbound_transform(
&self,
raw_message: RawGossipsubMessage
) -> Result<GossipsubMessage, Error>
Takes a RawGossipsubMessage
received and converts it to a GossipsubMessage
.
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for IdentityTransform
impl Send for IdentityTransform
impl Sync for IdentityTransform
impl Unpin for IdentityTransform
impl UnwindSafe for IdentityTransform
Blanket Implementations
Mutably borrows from an owned value. Read more