Struct libp2p::floodsub::FloodsubConfig
source · [−]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
sourceimpl FloodsubConfig
impl FloodsubConfig
pub fn new(local_peer_id: PeerId) -> FloodsubConfig
Auto Trait Implementations
impl RefUnwindSafe for FloodsubConfig
impl Send for FloodsubConfig
impl Sync for FloodsubConfig
impl Unpin for FloodsubConfig
impl UnwindSafe for FloodsubConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more