Struct libp2p_floodsub::FloodsubConfig
source · Expand description
Configuration options for the Floodsub protocol.
Fields§
§local_peer_id: PeerIdPeer id of the local node. Used for the source of the messages that we publish.
subscribe_local_messages: booltrue if messages published by local node should be propagated as messages received from
the network, false by default.
Implementations§
Trait Implementations§
source§impl Clone for FloodsubConfig
impl Clone for FloodsubConfig
source§fn clone(&self) -> FloodsubConfig
fn clone(&self) -> FloodsubConfig
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