Struct libp2p_floodsub::FloodsubConfig
source · pub struct FloodsubConfig {
pub local_peer_id: PeerId,
pub subscribe_local_messages: bool,
}
Expand description
Configuration options for the Floodsub protocol.
Fields§
§local_peer_id: PeerId
Peer id of the local node. Used for the source of the messages that we publish.
subscribe_local_messages: bool
true
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 moreAuto Trait Implementations§
impl RefUnwindSafe for FloodsubConfig
impl Send for FloodsubConfig
impl Sync for FloodsubConfig
impl Unpin for FloodsubConfig
impl UnwindSafe for FloodsubConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more