Struct libp2p_gossipsub::GossipsubRpc
source · pub struct GossipsubRpc {
pub messages: Vec<RawGossipsubMessage>,
pub subscriptions: Vec<GossipsubSubscription>,
pub control_msgs: Vec<GossipsubControlAction>,
}
Expand description
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§
source§impl GossipsubRpc
impl GossipsubRpc
sourcepub fn into_protobuf(self) -> Rpc
pub fn into_protobuf(self) -> Rpc
Converts the GossipsubRPC into its protobuf format.
Trait Implementations§
source§impl Clone for GossipsubRpc
impl Clone for GossipsubRpc
source§fn clone(&self) -> GossipsubRpc
fn clone(&self) -> GossipsubRpc
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more