Struct libp2p_gossipsub::GossipsubRpc [−][src]
pub struct GossipsubRpc { pub messages: Vec<RawGossipsubMessage>, pub subscriptions: Vec<GossipsubSubscription>, pub control_msgs: Vec<GossipsubControlAction>, }
An RPC received/sent.
Fields
messages: Vec<RawGossipsubMessage>
List of messages that were part of this RPC query.
subscriptions: Vec<GossipsubSubscription>
List of subscriptions.
control_msgs: Vec<GossipsubControlAction>
List of Gossipsub control messages.
Implementations
impl GossipsubRpc
[src]
impl GossipsubRpc
[src]pub fn into_protobuf(self) -> Rpc
[src]
Converts the GossipsubRPC into its protobuf format.
Trait Implementations
impl Clone for GossipsubRpc
[src]
impl Clone for GossipsubRpc
[src]fn clone(&self) -> GossipsubRpc
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hash for GossipsubRpc
[src]
impl Hash for GossipsubRpc
[src]impl PartialEq<GossipsubRpc> for GossipsubRpc
[src]
impl PartialEq<GossipsubRpc> for GossipsubRpc
[src]