Struct libp2p_gossipsub::IdentityTransform [−][src]
pub struct IdentityTransform;
The default transform, the raw data is propagated as is to the application layer gossipsub.
Trait Implementations
impl Clone for IdentityTransform
[src]
impl Clone for IdentityTransform
[src]fn clone(&self) -> IdentityTransform
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl DataTransform for IdentityTransform
[src]
impl DataTransform for IdentityTransform
[src]fn inbound_transform(
&self,
raw_message: RawGossipsubMessage
) -> Result<GossipsubMessage, Error>
[src]
&self,
raw_message: RawGossipsubMessage
) -> Result<GossipsubMessage, Error>
fn outbound_transform(
&self,
_topic: &TopicHash,
data: Vec<u8>
) -> Result<Vec<u8>, Error>
[src]
&self,
_topic: &TopicHash,
data: Vec<u8>
) -> Result<Vec<u8>, Error>
impl Default for IdentityTransform
[src]
impl Default for IdentityTransform
[src]