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>[src]
pub fn inbound_transform(
&self,
raw_message: RawGossipsubMessage
) -> Result<GossipsubMessage, Error>[src]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 IdentityTransformimpl Send for IdentityTransformimpl Sync for IdentityTransformimpl Unpin for IdentityTransformimpl UnwindSafe for IdentityTransformBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V