Struct libp2p::gossipsub::IdentityTransform [−][src]
pub struct IdentityTransform;
Expand description
The default transform, the raw data is propagated as is to the application layer gossipsub.
Trait Implementations
pub fn inbound_transform(
&self,
raw_message: RawGossipsubMessage
) -> Result<GossipsubMessage, Error>
pub fn inbound_transform(
&self,
raw_message: RawGossipsubMessage
) -> Result<GossipsubMessage, Error>
Takes a RawGossipsubMessage
received and converts it to a GossipsubMessage
.
Takes the data to be published (a topic and associated data) transforms the data. The
transformed data will then be used to create a crate::RawGossipsubMessage
to be sent to peers. Read more
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
pub fn vzip(self) -> V